https://github.com/libsdl-org/SDL/commit/0253a45029cd2e4b2817797f562941917d06ccfd
From 0253a45029cd2e4b2817797f562941917d06ccfd Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 5 Jul 2022 21:42:20 -0700
Subject: [PATCH] Fix format specifiers for WPARAM/LPARAM values, they are
UINT_PTR.
---
VisualC-GDK/clean.sh | 0
src/video/windows/SDL_windowsevents.c | 4 ++--
2 files changed, 2 insertions(+), 2 deletions(-)
mode change 100644 => 100755 VisualC-GDK/clean.sh
diff --git a/VisualC-GDK/clean.sh b/VisualC-GDK/clean.sh
old mode 100644
new mode 100755
diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c
index d2f62a7b953..8fbdccd0905 100644
--- a/src/video/windows/SDL_windowsevents.c
+++ b/src/video/windows/SDL_windowsevents.c
@@ -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);
}