mirror of
https://github.com/reactos/reactos.git
synced 2025-05-22 18:45:00 +00:00
[APPLICATIONS]
* Fix some format specifiers. svn path=/trunk/; revision=58510
This commit is contained in:
parent
5743d95036
commit
1fe48aa611
4 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ int main (int argc, char ** argv)
|
|||
printf ("%s\n", ComputerName);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
fprintf (stderr, "%s: Win32 error %ld.\n",
|
||||
fprintf (stderr, "%s: Win32 error %lu.\n",
|
||||
argv[0], GetLastError());
|
||||
return EXIT_FAILURE;
|
||||
}else{
|
||||
|
|
|
@ -695,7 +695,7 @@ QueryEventMessages(LPWSTR lpMachineName,
|
|||
else
|
||||
_snwprintf(szWindowTitle+i, dwMaxLength, L"%s", lpComputerName);
|
||||
|
||||
swprintf(szStatusText, L"%s has %d event(s)", lpLogName, dwTotalRecords);
|
||||
swprintf(szStatusText, L"%s has %lu event(s)", lpLogName, dwTotalRecords);
|
||||
|
||||
// Update the status bar
|
||||
SendMessageW(hwndStatus, SB_SETTEXT, (WPARAM)0, (LPARAM)szStatusText);
|
||||
|
|
|
@ -143,7 +143,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
|||
else
|
||||
{
|
||||
WCHAR szMsg[MAX_PATH];
|
||||
wsprintf(szMsg, L"Failed to load the installer. Error %d", GetLastError());
|
||||
wsprintf(szMsg, L"Failed to load the installer. Error %lu", GetLastError());
|
||||
MessageBoxW(0, szMsg, L"Error", MB_OK | MB_ICONERROR);
|
||||
DeleteDirectory(szTempPath);
|
||||
return 1;
|
||||
|
|
|
@ -179,7 +179,7 @@ VOID DisplayError(DWORD dwError)
|
|||
|
||||
/* Prints out the error message to the user */
|
||||
fprintf(stderr, resMsg);
|
||||
fwprintf(stderr, L"Error code: %d\n", dwError);
|
||||
fwprintf(stderr, L"Error code: %lu\n", dwError);
|
||||
|
||||
LocalFree(lpMsgBuf);
|
||||
LocalFree(resMsg);
|
||||
|
|
Loading…
Reference in a new issue