Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
bc99ac09
Commit
bc99ac09
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Don't use sizeof in traces to avoid printf format warnings.
parent
9f37cd55
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
12 deletions
+8
-12
buffer.c
dlls/dsound/buffer.c
+1
-1
capture.c
dlls/dsound/capture.c
+2
-4
dsound.c
dlls/dsound/dsound.c
+1
-2
primary.c
dlls/dsound/primary.c
+1
-1
sound3d.c
dlls/dsound/sound3d.c
+3
-4
No files found.
dlls/dsound/buffer.c
View file @
bc99ac09
...
...
@@ -873,7 +873,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetCaps(
}
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
;
}
...
...
dlls/dsound/capture.c
View file @
bc99ac09
...
...
@@ -508,8 +508,7 @@ HRESULT WINAPI IDirectSoundCaptureImpl_GetCaps(
}
if
(
lpDSCCaps
->
dwSize
<
sizeof
(
*
lpDSCCaps
))
{
WARN
(
"invalid parameter: lpDSCCaps->dwSize = %ld < %d
\n
"
,
lpDSCCaps
->
dwSize
,
sizeof
(
*
lpDSCCaps
));
WARN
(
"invalid parameter: lpDSCCaps->dwSize = %ld
\n
"
,
lpDSCCaps
->
dwSize
);
return
DSERR_INVALIDPARAM
;
}
...
...
@@ -816,8 +815,7 @@ IDirectSoundCaptureBufferImpl_GetCaps(
}
if
(
lpDSCBCaps
->
dwSize
<
sizeof
(
DSCBCAPS
))
{
WARN
(
"invalid parameter: lpDSCBCaps->dwSize = %ld < %d
\n
"
,
lpDSCBCaps
->
dwSize
,
sizeof
(
DSCBCAPS
));
WARN
(
"invalid parameter: lpDSCBCaps->dwSize = %ld
\n
"
,
lpDSCBCaps
->
dwSize
);
return
DSERR_INVALIDPARAM
;
}
...
...
dlls/dsound/dsound.c
View file @
bc99ac09
...
...
@@ -1239,8 +1239,7 @@ HRESULT DirectSoundDevice_GetCaps(
/* check if there is enough room */
if
(
lpDSCaps
->
dwSize
<
sizeof
(
*
lpDSCaps
))
{
WARN
(
"invalid parameter: lpDSCaps->dwSize = %ld < %d
\n
"
,
lpDSCaps
->
dwSize
,
sizeof
(
*
lpDSCaps
));
WARN
(
"invalid parameter: lpDSCaps->dwSize = %ld
\n
"
,
lpDSCaps
->
dwSize
);
return
DSERR_INVALIDPARAM
;
}
...
...
dlls/dsound/primary.c
View file @
bc99ac09
...
...
@@ -938,7 +938,7 @@ static HRESULT WINAPI PrimaryBufferImpl_GetCaps(
}
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
;
}
...
...
dlls/dsound/sound3d.c
View file @
bc99ac09
...
...
@@ -400,7 +400,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetAllParameters(
}
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
;
}
...
...
@@ -516,8 +516,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetAllParameters(
}
if
(
lpcDs3dBuffer
->
dwSize
!=
sizeof
(
DS3DBUFFER
))
{
WARN
(
"invalid parameter: lpcDs3dBuffer->dwSize = %ld != %d
\n
"
,
lpcDs3dBuffer
->
dwSize
,
sizeof
(
DS3DBUFFER
));
WARN
(
"invalid parameter: lpcDs3dBuffer->dwSize = %ld
\n
"
,
lpcDs3dBuffer
->
dwSize
);
return
status
;
}
...
...
@@ -835,7 +834,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_GetAllParameter(
}
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment