fix compilation of usetup
authorChristoph von Wittich <christoph_vw@reactos.org>
Sat, 28 Jul 2007 20:32:16 +0000 (20:32 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Sat, 28 Jul 2007 20:32:16 +0000 (20:32 +0000)
svn path=/trunk/; revision=27976

reactos/base/setup/usetup/interface/usetup.c
reactos/base/setup/usetup/partlist.c
reactos/base/setup/usetup/progress.c

index 8bf2e3d..75d721d 100644 (file)
@@ -1543,7 +1543,7 @@ ShowPartitionSizeInputBox(SHORT Left,
                                 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 @@ ShowPartitionSizeInputBox(SHORT Left,
                                coPos,
                                &Written);
 
-  sprintf(Buffer, "%u", MaxSize);
+  sprintf(Buffer, "%lu", MaxSize);
   Index = strlen(Buffer);
   DrawInputField (PARTITION_SIZE_INPUT_FIELD_LENGTH,
                  iLeft,
@@ -2465,7 +2465,7 @@ CheckFileSystemPage(PINPUT_RECORD Ir)
     {
         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);
index b89e136..25271be 100644 (file)
@@ -1271,7 +1271,7 @@ PrintDiskData (PPARTLIST List,
   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 @@ PrintDiskData (PPARTLIST List,
   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,
index beb791c..02c0a99 100644 (file)
@@ -180,7 +180,7 @@ DrawProgressBar(PPROGRESSBAR Bar)
   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 @@ ProgressNextStep(PPROGRESSBAR Bar)
     {
       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 @@ ProgressSetStep (PPROGRESSBAR Bar,
     {
       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;