Fix format specifiers for WPARAM/LPARAM values, they are UINT_PTR.

This commit is contained in:
Sam Lantinga 2022-07-05 21:42:20 -07:00
parent f5cbc440e3
commit 0253a45029
2 changed files with 2 additions and 2 deletions

0
VisualC-GDK/clean.sh Normal file → Executable file
View File

View File

@ -677,9 +677,9 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
char message[1024];
if (msg > MAX_WMMSG) {
SDL_snprintf(message, sizeof(message), "Received windows message: %p UNKNOWN (%d) -- 0x%X, 0x%X\n", hwnd, msg, wParam, lParam);
SDL_snprintf(message, sizeof(message), "Received windows message: %p UNKNOWN (%d) -- 0x%p, 0x%p\n", hwnd, msg, wParam, lParam);
} else {
SDL_snprintf(message, sizeof(message), "Received windows message: %p %s -- 0x%X, 0x%X\n", hwnd, wmtab[msg], wParam, lParam);
SDL_snprintf(message, sizeof(message), "Received windows message: %p %s -- 0x%p, 0x%p\n", hwnd, wmtab[msg], wParam, lParam);
}
OutputDebugStringA(message);
}