mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 11:04:52 +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);
|
printf ("%s\n", ComputerName);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
fprintf (stderr, "%s: Win32 error %ld.\n",
|
fprintf (stderr, "%s: Win32 error %lu.\n",
|
||||||
argv[0], GetLastError());
|
argv[0], GetLastError());
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}else{
|
}else{
|
||||||
|
|
|
@ -695,7 +695,7 @@ QueryEventMessages(LPWSTR lpMachineName,
|
||||||
else
|
else
|
||||||
_snwprintf(szWindowTitle+i, dwMaxLength, L"%s", lpComputerName);
|
_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
|
// Update the status bar
|
||||||
SendMessageW(hwndStatus, SB_SETTEXT, (WPARAM)0, (LPARAM)szStatusText);
|
SendMessageW(hwndStatus, SB_SETTEXT, (WPARAM)0, (LPARAM)szStatusText);
|
||||||
|
|
|
@ -143,7 +143,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
WCHAR szMsg[MAX_PATH];
|
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);
|
MessageBoxW(0, szMsg, L"Error", MB_OK | MB_ICONERROR);
|
||||||
DeleteDirectory(szTempPath);
|
DeleteDirectory(szTempPath);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -179,7 +179,7 @@ VOID DisplayError(DWORD dwError)
|
||||||
|
|
||||||
/* Prints out the error message to the user */
|
/* Prints out the error message to the user */
|
||||||
fprintf(stderr, resMsg);
|
fprintf(stderr, resMsg);
|
||||||
fwprintf(stderr, L"Error code: %d\n", dwError);
|
fwprintf(stderr, L"Error code: %lu\n", dwError);
|
||||||
|
|
||||||
LocalFree(lpMsgBuf);
|
LocalFree(lpMsgBuf);
|
||||||
LocalFree(resMsg);
|
LocalFree(resMsg);
|
||||||
|
|
Loading…
Reference in a new issue