mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
user32: Don't use sizeof in traces to avoid printf format warnings.
This commit is contained in:
parent
2a91838f0c
commit
2864377793
@ -1529,7 +1529,7 @@ HDDEDATA WDML_Global2DataHandle(HGLOBAL hMem, WINE_DDEHEAD* p)
|
||||
}
|
||||
else
|
||||
{
|
||||
ERR("Wrong count: %lu / %d\n", size, sizeof(BITMAP) + count);
|
||||
ERR("Wrong count: %lu / %d\n", size, count);
|
||||
}
|
||||
} else ERR("No bitmap header\n");
|
||||
break;
|
||||
|
@ -1450,7 +1450,6 @@ static BOOL unpack_dde_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM
|
||||
case WM_DDE_POKE:
|
||||
if ((!buffer || !*buffer) && message != WM_DDE_DATA) return FALSE;
|
||||
uiHi = *lparam;
|
||||
TRACE( "recv ddepack %u %x\n", size, uiHi );
|
||||
if (size)
|
||||
{
|
||||
if (!(hMem = GlobalAlloc( GMEM_MOVEABLE|GMEM_DDESHARE, size )))
|
||||
@ -2032,9 +2031,6 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, int flags
|
||||
if (!unpack_message( info.msg.hwnd, info.msg.message, &info.msg.wParam,
|
||||
&info.msg.lParam, &buffer, size ))
|
||||
{
|
||||
ERR( "invalid packed message %x (%s) hwnd %p wp %x lp %lx size %d\n",
|
||||
info.msg.message, SPY_GetMsgName(info.msg.message, info.msg.hwnd), info.msg.hwnd,
|
||||
info.msg.wParam, info.msg.lParam, size );
|
||||
/* ignore it */
|
||||
reply_message( &info, 0, TRUE );
|
||||
goto next;
|
||||
@ -2055,12 +2051,7 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, int flags
|
||||
{
|
||||
if (!unpack_dde_message( info.msg.hwnd, info.msg.message, &info.msg.wParam,
|
||||
&info.msg.lParam, &buffer, size ))
|
||||
{
|
||||
ERR( "invalid packed dde-message %x (%s) hwnd %p wp %x lp %lx size %d\n",
|
||||
info.msg.message, SPY_GetMsgName(info.msg.message, info.msg.hwnd),
|
||||
info.msg.hwnd, info.msg.wParam, info.msg.lParam, size );
|
||||
goto next; /* ignore it */
|
||||
}
|
||||
}
|
||||
*msg = info.msg;
|
||||
HeapFree( GetProcessHeap(), 0, buffer );
|
||||
@ -2246,7 +2237,7 @@ static LRESULT retrieve_reply( const struct send_message_info *info,
|
||||
{
|
||||
if (!(reply_data = HeapAlloc( GetProcessHeap(), 0, reply_size )))
|
||||
{
|
||||
WARN( "no memory for reply %d bytes, will be truncated\n", reply_size );
|
||||
WARN( "no memory for reply, will be truncated\n" );
|
||||
reply_size = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user