Commit 9f37cd55 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 1b469c24
...@@ -867,8 +867,7 @@ HRESULT DPLAYX_SetConnectionSettingsA ...@@ -867,8 +867,7 @@ HRESULT DPLAYX_SetConnectionSettingsA
/* Store information */ /* Store information */
if( lpConn->dwSize != sizeof(DPLCONNECTION) ) if( lpConn->dwSize != sizeof(DPLCONNECTION) )
{ {
ERR(": old/new DPLCONNECTION type? Size=%08lx vs. expected=%ul bytes\n", ERR(": old/new DPLCONNECTION type? Size=%08lx\n", lpConn->dwSize );
lpConn->dwSize, sizeof( DPLCONNECTION ) );
return DPERR_INVALIDPARAMS; return DPERR_INVALIDPARAMS;
} }
...@@ -888,8 +887,7 @@ HRESULT DPLAYX_SetConnectionSettingsA ...@@ -888,8 +887,7 @@ HRESULT DPLAYX_SetConnectionSettingsA
{ {
DPLAYX_ReleaseSemaphore(); DPLAYX_ReleaseSemaphore();
ERR("DPSESSIONDESC passed in? Size=%lu vs. expected=%u bytes\n", ERR("DPSESSIONDESC passed in? Size=%lu\n", lpConn->lpSessionDesc->dwSize );
lpConn->lpSessionDesc->dwSize, sizeof( DPSESSIONDESC2 ) );
return DPERR_INVALIDPARAMS; return DPERR_INVALIDPARAMS;
} }
...@@ -931,8 +929,7 @@ HRESULT DPLAYX_SetConnectionSettingsW ...@@ -931,8 +929,7 @@ HRESULT DPLAYX_SetConnectionSettingsW
/* Store information */ /* Store information */
if( lpConn->dwSize != sizeof(DPLCONNECTION) ) if( lpConn->dwSize != sizeof(DPLCONNECTION) )
{ {
ERR(": old/new DPLCONNECTION type? Size=%lu vs. expected=%u bytes\n", ERR(": old/new DPLCONNECTION type? Size=%lu\n", lpConn->dwSize );
lpConn->dwSize, sizeof( DPLCONNECTION ) );
return DPERR_INVALIDPARAMS; return DPERR_INVALIDPARAMS;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment