mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[APPLICATIONS]
* Fix some format specifiers. svn path=/trunk/; revision=58510
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user