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
1d9637f5
Commit
1d9637f5
authored
Dec 02, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa.drv: Get rid of sizeof in traces.
parent
c4b52339
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
alsa.c
dlls/winealsa.drv/alsa.c
+1
-1
midi.c
dlls/winealsa.drv/midi.c
+2
-2
No files found.
dlls/winealsa.drv/alsa.c
View file @
1d9637f5
...
...
@@ -389,7 +389,7 @@ void ALSA_copyFormat(LPWAVEFORMATEX wf1, LPWAVEFORMATPCMEX wf2)
else
iLength
=
sizeof
(
WAVEFORMATEX
)
+
wf1
->
cbSize
;
if
(
iLength
>
sizeof
(
WAVEFORMATPCMEX
))
{
ERR
(
"calculated %u bytes, capping
to %u bytes
\n
"
,
iLength
,
sizeof
(
WAVEFORMATPCMEX
)
);
ERR
(
"calculated %u bytes, capping
\n
"
,
iLength
);
iLength
=
sizeof
(
WAVEFORMATPCMEX
);
}
memcpy
(
wf2
,
wf1
,
iLength
);
...
...
dlls/winealsa.drv/midi.c
View file @
1d9637f5
...
...
@@ -1050,8 +1050,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
;
}
...
...
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