Alexandre Julliard : dplayx: Don'
t use sizeof in traces to avoid printf format warnings.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 14 06:50:46 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 9f37cd55bc0ede48fa6b2399b6beb885bfe3b9eb
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=9f37cd55bc0ede48fa6b2399b6beb885bfe3b9eb
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jun 13 14:10:21 2006 +0200
dplayx: Don't use sizeof in traces to avoid printf format warnings.
---
dlls/dplayx/dplayx_global.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/dplayx/dplayx_global.c b/dlls/dplayx/dplayx_global.c
index c55680c..942578d 100644
--- a/dlls/dplayx/dplayx_global.c
+++ b/dlls/dplayx/dplayx_global.c
@@ -867,8 +867,7 @@ ( DWORD dwFlags,
/* Store information */
if( lpConn->dwSize != sizeof(DPLCONNECTION) )
{
- ERR(": old/new DPLCONNECTION type? Size=%08lx vs. expected=%ul bytes\n",
- lpConn->dwSize, sizeof( DPLCONNECTION ) );
+ ERR(": old/new DPLCONNECTION type? Size=%08lx\n", lpConn->dwSize );
return DPERR_INVALIDPARAMS;
}
@@ -888,8 +887,7 @@ ( DWORD dwFlags,
{
DPLAYX_ReleaseSemaphore();
- ERR("DPSESSIONDESC passed in? Size=%lu vs. expected=%u bytes\n",
- lpConn->lpSessionDesc->dwSize, sizeof( DPSESSIONDESC2 ) );
+ ERR("DPSESSIONDESC passed in? Size=%lu\n", lpConn->lpSessionDesc->dwSize );
return DPERR_INVALIDPARAMS;
}
@@ -931,8 +929,7 @@ ( DWORD dwFlags,
/* Store information */
if( lpConn->dwSize != sizeof(DPLCONNECTION) )
{
- ERR(": old/new DPLCONNECTION type? Size=%lu vs. expected=%u bytes\n",
- lpConn->dwSize, sizeof( DPLCONNECTION ) );
+ ERR(": old/new DPLCONNECTION type? Size=%lu\n", lpConn->dwSize );
return DPERR_INVALIDPARAMS;
}
More information about the wine-cvs
mailing list