fix compilation of usetup

svn path=/trunk/; revision=27976
This commit is contained in:
Christoph von Wittich 2007-07-28 20:32:16 +00:00
parent c50397f0e4
commit 40c483fa1a
3 changed files with 8 additions and 8 deletions

View 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);

View 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,

View 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;