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
cb6ddfc7
Commit
cb6ddfc7
authored
Jan 25, 2009
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jan 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Make the return behavior of waveOutPrepareHeader consistent for 16-bit and 32-bit.
parent
7742fe28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
mmsystem.c
dlls/winmm/mmsystem.c
+13
-2
No files found.
dlls/winmm/mmsystem.c
View file @
cb6ddfc7
...
...
@@ -1279,15 +1279,26 @@ UINT16 WINAPI waveOutPrepareHeader16(HWAVEOUT16 hWaveOut, /* [in] */
{
LPWINE_MLD
wmld
;
LPWAVEHDR
lpWaveOutHdr
=
MapSL
(
lpsegWaveOutHdr
);
UINT16
result
;
TRACE
(
"(%04X, %08x, %u);
\n
"
,
hWaveOut
,
lpsegWaveOutHdr
,
uSize
);
if
(
lpWaveOutHdr
==
NULL
)
return
MMSYSERR_INVALPARAM
;
if
((
wmld
=
MMDRV_Get
(
HWAVEOUT_32
(
hWaveOut
),
MMDRV_WAVEOUT
,
FALSE
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
return
MMSYSERR_INVALHANDLE
;
if
((
result
=
MMDRV_Message
(
wmld
,
WODM_PREPARE
,
lpsegWaveOutHdr
,
uSize
,
FALSE
))
!=
MMSYSERR_NOTSUPPORTED
)
return
result
;
return
MMDRV_Message
(
wmld
,
WODM_PREPARE
,
lpsegWaveOutHdr
,
uSize
,
FALSE
);
if
(
lpWaveOutHdr
->
dwFlags
&
WHDR_INQUEUE
)
return
WAVERR_STILLPLAYING
;
lpWaveOutHdr
->
dwFlags
|=
WHDR_PREPARED
;
lpWaveOutHdr
->
dwFlags
&=
~
WHDR_DONE
;
return
MMSYSERR_NOERROR
;
}
/**************************************************************************
...
...
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