user32: Don't use sizeof in traces to avoid printf format warnings.

This commit is contained in:
Alexandre Julliard 2006-06-13 14:11:36 +02:00
parent 2a91838f0c
commit 2864377793
2 changed files with 2 additions and 11 deletions

View File

@ -1529,7 +1529,7 @@ HDDEDATA WDML_Global2DataHandle(HGLOBAL hMem, WINE_DDEHEAD* p)
} }
else 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"); } else ERR("No bitmap header\n");
break; break;

View File

@ -1450,7 +1450,6 @@ static BOOL unpack_dde_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM
case WM_DDE_POKE: case WM_DDE_POKE:
if ((!buffer || !*buffer) && message != WM_DDE_DATA) return FALSE; if ((!buffer || !*buffer) && message != WM_DDE_DATA) return FALSE;
uiHi = *lparam; uiHi = *lparam;
TRACE( "recv ddepack %u %x\n", size, uiHi );
if (size) if (size)
{ {
if (!(hMem = GlobalAlloc( GMEM_MOVEABLE|GMEM_DDESHARE, 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, if (!unpack_message( info.msg.hwnd, info.msg.message, &info.msg.wParam,
&info.msg.lParam, &buffer, size )) &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 */ /* ignore it */
reply_message( &info, 0, TRUE ); reply_message( &info, 0, TRUE );
goto next; goto next;
@ -2055,13 +2051,8 @@ 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, if (!unpack_dde_message( info.msg.hwnd, info.msg.message, &info.msg.wParam,
&info.msg.lParam, &buffer, size )) &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 */ goto next; /* ignore it */
} }
}
*msg = info.msg; *msg = info.msg;
HeapFree( GetProcessHeap(), 0, buffer ); HeapFree( GetProcessHeap(), 0, buffer );
return TRUE; return TRUE;
@ -2246,7 +2237,7 @@ static LRESULT retrieve_reply( const struct send_message_info *info,
{ {
if (!(reply_data = HeapAlloc( GetProcessHeap(), 0, reply_size ))) 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; reply_size = 0;
} }
} }