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:
|
||||
{
|
||||
winDebug("winClipboardWindowProc - WM_CHANGECBCHAIN: wParam(%x) "
|
||||
"lParam(%x) s_hwndNextViewer(%x)\n",
|
||||
"lParam(%x) s_hwndNextViewer(%p)\n",
|
||||
wParam, lParam, 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. */
|
||||
if (first == hwnd)
|
||||
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);
|
||||
s_fCBCInitialized = FALSE;
|
||||
ChangeClipboardChain(hwnd, s_hwndNextViewer);
|
||||
|
|
|
@ -158,7 +158,7 @@ winDebugWin32Message(const char *function, HWND hwnd, UINT message,
|
|||
getenv("WIN_DEBUG_WM_USER")) {
|
||||
winDebug("%s - Message WM_USER + %d\n", function,
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
@ -170,7 +170,7 @@ winDebugWin32Message(const char *function, HWND hwnd, UINT message,
|
|||
buffer[63] = 0;
|
||||
if (force || getenv("WIN_DEBUG_MESSAGES") || getenv(buffer)) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user