diff --git a/reactos/base/applications/cmdutils/hostname/hostname.c b/reactos/base/applications/cmdutils/hostname/hostname.c index b1c66713ce5..c118d2b575b 100644 --- a/reactos/base/applications/cmdutils/hostname/hostname.c +++ b/reactos/base/applications/cmdutils/hostname/hostname.c @@ -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{ diff --git a/reactos/base/applications/mscutils/eventvwr/eventvwr.c b/reactos/base/applications/mscutils/eventvwr/eventvwr.c index 628eac0c505..f04b5118621 100644 --- a/reactos/base/applications/mscutils/eventvwr/eventvwr.c +++ b/reactos/base/applications/mscutils/eventvwr/eventvwr.c @@ -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); diff --git a/reactos/base/applications/setup16/main.c b/reactos/base/applications/setup16/main.c index 639cd98518e..a3b2ae40f04 100644 --- a/reactos/base/applications/setup16/main.c +++ b/reactos/base/applications/setup16/main.c @@ -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; diff --git a/reactos/base/applications/shutdown/misc.c b/reactos/base/applications/shutdown/misc.c index b26ff706e37..a245bfa37af 100644 --- a/reactos/base/applications/shutdown/misc.c +++ b/reactos/base/applications/shutdown/misc.c @@ -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);