Author: cwittich
Date: Sun Jul 29 00:32:16 2007
New Revision: 27976
URL:
http://svn.reactos.org/svn/reactos?rev=27976&view=rev
Log:
fix compilation of usetup
Modified:
trunk/reactos/base/setup/usetup/interface/usetup.c
trunk/reactos/base/setup/usetup/partlist.c
trunk/reactos/base/setup/usetup/progress.c
Modified: trunk/reactos/base/setup/usetup/interface/usetup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/interfac…
==============================================================================
--- trunk/reactos/base/setup/usetup/interface/usetup.c (original)
+++ trunk/reactos/base/setup/usetup/interface/usetup.c Sun Jul 29 00:32:16 2007
@@ -1543,7 +1543,7 @@
coPos,
&Written);
- sprintf (Buffer, "MB (max. %u MB)", MaxSize);
+ sprintf (Buffer, "MB (max. %lu MB)", MaxSize);
coPos.X = iLeft + PARTITION_SIZE_INPUT_FIELD_LENGTH + 1;
coPos.Y = iTop;
WriteConsoleOutputCharacterA (StdOutput,
@@ -1552,7 +1552,7 @@
coPos,
&Written);
- sprintf(Buffer, "%u", MaxSize);
+ sprintf(Buffer, "%lu", MaxSize);
Index = strlen(Buffer);
DrawInputField (PARTITION_SIZE_INPUT_FIELD_LENGTH,
iLeft,
@@ -2465,7 +2465,7 @@
{
DPRINT("ChkdskPartition() failed with status 0x%08lx\n", Status);
sprintf(Buffer, "Setup failed to verify the selected partition.\n"
- "(Status 0x%08x).\n", Status);
+ "(Status 0x%08lx).\n", Status);
PopupError(Buffer,
"ENTER = Reboot computer",
Ir, POPUP_WAIT_ENTER);
Modified: trunk/reactos/base/setup/usetup/partlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/partlist…
==============================================================================
--- trunk/reactos/base/setup/usetup/partlist.c (original)
+++ trunk/reactos/base/setup/usetup/partlist.c Sun Jul 29 00:32:16 2007
@@ -1271,7 +1271,7 @@
if (DiskEntry->DriverName.Length > 0)
{
sprintf (LineBuffer,
- "%6lu %s Harddisk %u (Port=%hu, Bus=%hu, Id=%hu) on %S",
+ "%6lu %s Harddisk %lu (Port=%hu, Bus=%hu, Id=%hu) on %S",
DiskSize.u.LowPart,
Unit,
DiskEntry->DiskNumber,
@@ -1283,7 +1283,7 @@
else
{
sprintf (LineBuffer,
- "%6lu %s Harddisk %u (Port=%hu, Bus=%hu, Id=%hu)",
+ "%6lu %s Harddisk %lu (Port=%hu, Bus=%hu, Id=%hu)",
DiskSize.u.LowPart,
Unit,
DiskEntry->DiskNumber,
Modified: trunk/reactos/base/setup/usetup/progress.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/progress…
==============================================================================
--- trunk/reactos/base/setup/usetup/progress.c (original)
+++ trunk/reactos/base/setup/usetup/progress.c Sun Jul 29 00:32:16 2007
@@ -180,7 +180,7 @@
PROGRESSBAR BarBorder = *Bar;
/* Print percentage */
- sprintf(TextBuffer, "%-3u%%", Bar->Percent);
+ sprintf(TextBuffer, "%-3lu%%", Bar->Percent);
coPos.X = Bar->Left + (Bar->Width - 2) / 2;
coPos.Y = Bar->Top;
@@ -310,7 +310,7 @@
{
Bar->Percent = NewPercent;
- sprintf(TextBuffer, "%-3u%%", Bar->Percent);
+ sprintf(TextBuffer, "%-3lu%%", Bar->Percent);
coPos.X = Bar->Left + (Bar->Width - 2) / 2;
coPos.Y = Bar->Top;
@@ -385,7 +385,7 @@
{
Bar->Percent = NewPercent;
- sprintf(TextBuffer, "%-3u%%", Bar->Percent);
+ sprintf(TextBuffer, "%-3lu%%", Bar->Percent);
coPos.X = Bar->Left + (Bar->Width - 2) / 2;
coPos.Y = Bar->Top;