hw/xwin: printf format fixes for HWND type
HWND derives from HANDLE, a pointer type, so we should use the %p format Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
f1d1426667
commit
dcb797b31f
|
@ -195,7 +195,7 @@ winClipboardWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
case WM_CHANGECBCHAIN:
|
case WM_CHANGECBCHAIN:
|
||||||
{
|
{
|
||||||
winDebug("winClipboardWindowProc - WM_CHANGECBCHAIN: wParam(%x) "
|
winDebug("winClipboardWindowProc - WM_CHANGECBCHAIN: wParam(%x) "
|
||||||
"lParam(%x) s_hwndNextViewer(%x)\n",
|
"lParam(%x) s_hwndNextViewer(%p)\n",
|
||||||
wParam, lParam, s_hwndNextViewer);
|
wParam, lParam, s_hwndNextViewer);
|
||||||
|
|
||||||
if ((HWND) wParam == s_hwndNextViewer) {
|
if ((HWND) wParam == s_hwndNextViewer) {
|
||||||
|
@ -236,7 +236,7 @@ winClipboardWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
first = GetClipboardViewer(); /* Get handle to first viewer in chain. */
|
first = GetClipboardViewer(); /* Get handle to first viewer in chain. */
|
||||||
if (first == hwnd)
|
if (first == hwnd)
|
||||||
return 0; /* Make sure it's not us! */
|
return 0; /* Make sure it's not us! */
|
||||||
winDebug(" WM_WM_REINIT: Replacing us(%x) with %x at head "
|
winDebug(" WM_WM_REINIT: Replacing us(%p) with %p at head "
|
||||||
"of chain\n", hwnd, s_hwndNextViewer);
|
"of chain\n", hwnd, s_hwndNextViewer);
|
||||||
s_fCBCInitialized = FALSE;
|
s_fCBCInitialized = FALSE;
|
||||||
ChangeClipboardChain(hwnd, s_hwndNextViewer);
|
ChangeClipboardChain(hwnd, s_hwndNextViewer);
|
||||||
|
|
|
@ -158,7 +158,7 @@ winDebugWin32Message(const char *function, HWND hwnd, UINT message,
|
||||||
getenv("WIN_DEBUG_WM_USER")) {
|
getenv("WIN_DEBUG_WM_USER")) {
|
||||||
winDebug("%s - Message WM_USER + %d\n", function,
|
winDebug("%s - Message WM_USER + %d\n", function,
|
||||||
message - WM_USER);
|
message - WM_USER);
|
||||||
winDebug("\thwnd 0x%x wParam 0x%x lParam 0x%x\n", hwnd, wParam,
|
winDebug("\thwnd 0x%p wParam 0x%x lParam 0x%x\n", hwnd, wParam,
|
||||||
lParam);
|
lParam);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ winDebugWin32Message(const char *function, HWND hwnd, UINT message,
|
||||||
buffer[63] = 0;
|
buffer[63] = 0;
|
||||||
if (force || getenv("WIN_DEBUG_MESSAGES") || getenv(buffer)) {
|
if (force || getenv("WIN_DEBUG_MESSAGES") || getenv(buffer)) {
|
||||||
winDebug("%s - Message %s\n", function, MESSAGE_NAMES[message]);
|
winDebug("%s - Message %s\n", function, MESSAGE_NAMES[message]);
|
||||||
winDebug("\thwnd 0x%x wParam 0x%x lParam 0x%x\n", hwnd, wParam,
|
winDebug("\thwnd 0x%p wParam 0x%x lParam 0x%x\n", hwnd, wParam,
|
||||||
lParam);
|
lParam);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user