Commit bc99ac09 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 9f37cd55
...@@ -873,7 +873,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetCaps( ...@@ -873,7 +873,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetCaps(
} }
if (caps->dwSize < sizeof(*caps)) { if (caps->dwSize < sizeof(*caps)) {
WARN("invalid parameter: caps->dwSize = %ld < %d\n",caps->dwSize, sizeof(*caps)); WARN("invalid parameter: caps->dwSize = %ld\n",caps->dwSize);
return DSERR_INVALIDPARAM; return DSERR_INVALIDPARAM;
} }
......
...@@ -508,8 +508,7 @@ HRESULT WINAPI IDirectSoundCaptureImpl_GetCaps( ...@@ -508,8 +508,7 @@ HRESULT WINAPI IDirectSoundCaptureImpl_GetCaps(
} }
if (lpDSCCaps->dwSize < sizeof(*lpDSCCaps)) { if (lpDSCCaps->dwSize < sizeof(*lpDSCCaps)) {
WARN("invalid parameter: lpDSCCaps->dwSize = %ld < %d\n", WARN("invalid parameter: lpDSCCaps->dwSize = %ld\n", lpDSCCaps->dwSize);
lpDSCCaps->dwSize, sizeof(*lpDSCCaps));
return DSERR_INVALIDPARAM; return DSERR_INVALIDPARAM;
} }
...@@ -816,8 +815,7 @@ IDirectSoundCaptureBufferImpl_GetCaps( ...@@ -816,8 +815,7 @@ IDirectSoundCaptureBufferImpl_GetCaps(
} }
if (lpDSCBCaps->dwSize < sizeof(DSCBCAPS)) { if (lpDSCBCaps->dwSize < sizeof(DSCBCAPS)) {
WARN("invalid parameter: lpDSCBCaps->dwSize = %ld < %d\n", WARN("invalid parameter: lpDSCBCaps->dwSize = %ld\n", lpDSCBCaps->dwSize);
lpDSCBCaps->dwSize, sizeof(DSCBCAPS));
return DSERR_INVALIDPARAM; return DSERR_INVALIDPARAM;
} }
......
...@@ -1239,8 +1239,7 @@ HRESULT DirectSoundDevice_GetCaps( ...@@ -1239,8 +1239,7 @@ HRESULT DirectSoundDevice_GetCaps(
/* check if there is enough room */ /* check if there is enough room */
if (lpDSCaps->dwSize < sizeof(*lpDSCaps)) { if (lpDSCaps->dwSize < sizeof(*lpDSCaps)) {
WARN("invalid parameter: lpDSCaps->dwSize = %ld < %d\n", WARN("invalid parameter: lpDSCaps->dwSize = %ld\n", lpDSCaps->dwSize);
lpDSCaps->dwSize, sizeof(*lpDSCaps));
return DSERR_INVALIDPARAM; return DSERR_INVALIDPARAM;
} }
......
...@@ -938,7 +938,7 @@ static HRESULT WINAPI PrimaryBufferImpl_GetCaps( ...@@ -938,7 +938,7 @@ static HRESULT WINAPI PrimaryBufferImpl_GetCaps(
} }
if (caps->dwSize < sizeof(*caps)) { if (caps->dwSize < sizeof(*caps)) {
WARN("invalid parameter: caps->dwSize = %ld: < %d\n", caps->dwSize, sizeof(*caps)); WARN("invalid parameter: caps->dwSize = %ld\n", caps->dwSize);
return DSERR_INVALIDPARAM; return DSERR_INVALIDPARAM;
} }
......
...@@ -400,7 +400,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetAllParameters( ...@@ -400,7 +400,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetAllParameters(
} }
if (lpDs3dBuffer->dwSize < sizeof(*lpDs3dBuffer)) { if (lpDs3dBuffer->dwSize < sizeof(*lpDs3dBuffer)) {
WARN("invalid parameter: lpDs3dBuffer->dwSize = %ld < %d\n",lpDs3dBuffer->dwSize, sizeof(*lpDs3dBuffer)); WARN("invalid parameter: lpDs3dBuffer->dwSize = %ld\n",lpDs3dBuffer->dwSize);
return DSERR_INVALIDPARAM; return DSERR_INVALIDPARAM;
} }
...@@ -516,8 +516,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetAllParameters( ...@@ -516,8 +516,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetAllParameters(
} }
if (lpcDs3dBuffer->dwSize != sizeof(DS3DBUFFER)) { if (lpcDs3dBuffer->dwSize != sizeof(DS3DBUFFER)) {
WARN("invalid parameter: lpcDs3dBuffer->dwSize = %ld != %d\n", WARN("invalid parameter: lpcDs3dBuffer->dwSize = %ld\n", lpcDs3dBuffer->dwSize);
lpcDs3dBuffer->dwSize, sizeof(DS3DBUFFER));
return status; return status;
} }
...@@ -835,7 +834,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_GetAllParameter( ...@@ -835,7 +834,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_GetAllParameter(
} }
if (lpDS3DL->dwSize < sizeof(*lpDS3DL)) { if (lpDS3DL->dwSize < sizeof(*lpDS3DL)) {
WARN("invalid parameter: lpDS3DL->dwSize = %ld < %d\n",lpDS3DL->dwSize, sizeof(*lpDS3DL)); WARN("invalid parameter: lpDS3DL->dwSize = %ld\n",lpDS3DL->dwSize);
return DSERR_INVALIDPARAM; return DSERR_INVALIDPARAM;
} }
......
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