Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
1470955c
Commit
1470955c
authored
Dec 02, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss.drv: Get rid of sizeof in traces.
parent
9c306e98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
midi.c
dlls/wineoss.drv/midi.c
+2
-2
mixer.c
dlls/wineoss.drv/mixer.c
+18
-18
No files found.
dlls/wineoss.drv/midi.c
View file @
1470955c
...
...
@@ -1620,8 +1620,8 @@ static DWORD modPrepare(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
if
(
dwSize
<
sizeof
(
MIDIHDR
)
||
lpMidiHdr
==
0
||
lpMidiHdr
->
lpData
==
0
||
(
lpMidiHdr
->
dwFlags
&
MHDR_INQUEUE
)
!=
0
||
lpMidiHdr
->
dwBufferLength
>=
0x10000ul
)
{
WARN
(
"%p %p %08x %d
/%d
\n
"
,
lpMidiHdr
,
lpMidiHdr
?
lpMidiHdr
->
lpData
:
NULL
,
lpMidiHdr
?
lpMidiHdr
->
dwFlags
:
0
,
sizeof
(
MIDIHDR
),
dwSize
);
WARN
(
"%p %p %08x %d
\n
"
,
lpMidiHdr
,
lpMidiHdr
?
lpMidiHdr
->
lpData
:
NULL
,
lpMidiHdr
?
lpMidiHdr
->
dwFlags
:
0
,
dwSize
);
return
MMSYSERR_INVALPARAM
;
}
...
...
dlls/wineoss.drv/mixer.c
View file @
1470955c
...
...
@@ -787,8 +787,8 @@ static DWORD MIX_GetLineInfo(WORD wDevID, LPMIXERLINEW lpMl, DWORD fdwInfo)
}
if
(
lpMl
->
cbStruct
!=
sizeof
(
*
lpMl
))
{
WARN
(
"invalid parameter: lpMl->cbStruct = %d
!= %d
\n
"
,
lpMl
->
cbStruct
,
sizeof
(
*
lpMl
)
);
WARN
(
"invalid parameter: lpMl->cbStruct = %d
\n
"
,
lpMl
->
cbStruct
);
return
MMSYSERR_INVALPARAM
;
}
...
...
@@ -963,14 +963,14 @@ static DWORD MIX_GetLineControls(WORD wDevID, LPMIXERLINECONTROLSW lpMlc,
}
if
(
lpMlc
->
cbStruct
<
sizeof
(
*
lpMlc
))
{
WARN
(
"invalid parameter: lpMlc->cbStruct = %d
< %d
\n
"
,
lpMlc
->
cbStruct
,
sizeof
(
*
lpMlc
)
);
WARN
(
"invalid parameter: lpMlc->cbStruct = %d
\n
"
,
lpMlc
->
cbStruct
);
return
MMSYSERR_INVALPARAM
;
}
if
(
lpMlc
->
cbmxctrl
<
sizeof
(
MIXERCONTROLW
))
{
WARN
(
"invalid parameter: lpMlc->cbmxctrl = %d
< %d
\n
"
,
lpMlc
->
cbmxctrl
,
sizeof
(
MIXERCONTROLW
)
);
WARN
(
"invalid parameter: lpMlc->cbmxctrl = %d
\n
"
,
lpMlc
->
cbmxctrl
);
return
MMSYSERR_INVALPARAM
;
}
...
...
@@ -1098,8 +1098,8 @@ static DWORD MIX_GetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd,
if
(
lpmcd
->
cbDetails
!=
sizeof
(
MIXERCONTROLDETAILS_UNSIGNED
))
{
WARN
(
"invalid parameter: cbDetails
!
= %d
\n
"
,
sizeof
(
MIXERCONTROLDETAILS_UNSIGNED
)
);
WARN
(
"invalid parameter: cbDetails = %d
\n
"
,
lpmcd
->
cbDetails
);
return
MMSYSERR_INVALPARAM
;
}
...
...
@@ -1145,8 +1145,8 @@ static DWORD MIX_GetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd,
if
(
lpmcd
->
cbDetails
!=
sizeof
(
MIXERCONTROLDETAILS_BOOLEAN
))
{
WARN
(
"invalid parameter: cbDetails
!
= %d
\n
"
,
sizeof
(
MIXERCONTROLDETAILS_BOOLEAN
)
);
WARN
(
"invalid parameter: cbDetails = %d
\n
"
,
lpmcd
->
cbDetails
);
return
MMSYSERR_INVALPARAM
;
}
...
...
@@ -1167,8 +1167,8 @@ static DWORD MIX_GetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd,
if
(
lpmcd
->
cbDetails
!=
sizeof
(
MIXERCONTROLDETAILS_BOOLEAN
))
{
WARN
(
"invalid parameter: cbDetails
!
= %d
\n
"
,
sizeof
(
MIXERCONTROLDETAILS_BOOLEAN
)
);
WARN
(
"invalid parameter: cbDetails = %d
\n
"
,
lpmcd
->
cbDetails
);
return
MMSYSERR_INVALPARAM
;
}
...
...
@@ -1299,8 +1299,8 @@ static DWORD MIX_SetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd,
if
(
lpmcd
->
cbDetails
!=
sizeof
(
MIXERCONTROLDETAILS_UNSIGNED
))
{
WARN
(
"invalid parameter: cbDetails
!
= %d
\n
"
,
sizeof
(
MIXERCONTROLDETAILS_UNSIGNED
)
);
WARN
(
"invalid parameter: cbDetails = %d
\n
"
,
lpmcd
->
cbDetails
);
return
MMSYSERR_INVALPARAM
;
}
...
...
@@ -1351,8 +1351,8 @@ static DWORD MIX_SetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd,
if
(
lpmcd
->
cbDetails
!=
sizeof
(
MIXERCONTROLDETAILS_BOOLEAN
))
{
WARN
(
"invalid parameter: cbDetails
!
= %d
\n
"
,
sizeof
(
MIXERCONTROLDETAILS_BOOLEAN
)
);
WARN
(
"invalid parameter: cbDetails = %d
\n
"
,
lpmcd
->
cbDetails
);
return
MMSYSERR_INVALPARAM
;
}
...
...
@@ -1395,8 +1395,8 @@ static DWORD MIX_SetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd,
if
(
lpmcd
->
cbDetails
!=
sizeof
(
MIXERCONTROLDETAILS_BOOLEAN
))
{
WARN
(
"invalid parameter: cbDetails
!
= %d
\n
"
,
sizeof
(
MIXERCONTROLDETAILS_BOOLEAN
)
);
WARN
(
"invalid parameter: cbDetails = %d
\n
"
,
lpmcd
->
cbDetails
);
return
MMSYSERR_INVALPARAM
;
}
...
...
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