mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-03 20:12:41 +00:00
Fixed windows debug message formatting
This commit is contained in:
@@ -744,9 +744,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%p, 0x%p\n", hwnd, msg, wParam, lParam);
|
||||
SDL_snprintf(message, sizeof(message), "Received windows message: %p UNKNOWN (%d) -- 0x%x, 0x%x\r\n", hwnd, msg, wParam, lParam);
|
||||
} else {
|
||||
SDL_snprintf(message, sizeof(message), "Received windows message: %p %s -- 0x%p, 0x%p\n", hwnd, wmtab[msg], wParam, lParam);
|
||||
SDL_snprintf(message, sizeof(message), "Received windows message: %p %s -- 0x%x, 0x%x\r\n", hwnd, wmtab[msg], wParam, lParam);
|
||||
}
|
||||
OutputDebugStringA(message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user