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
64742c99
Commit
64742c99
authored
Jun 23, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Jun 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmsystem: Handle WAVE_FORMAT_QUERY case.
parent
3d94ea82
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
mmsystem.c
dlls/mmsystem.dll16/mmsystem.c
+6
-8
No files found.
dlls/mmsystem.dll16/mmsystem.c
View file @
64742c99
...
...
@@ -1257,11 +1257,10 @@ UINT16 WINAPI waveOutOpen16(HWAVEOUT16* lphWaveOut, UINT16 uDeviceID,
ret
=
waveOutOpen
(
&
hWaveOut
,
(
uDeviceID
==
(
UINT16
)
-
1
)
?
(
UINT
)
-
1
:
uDeviceID
,
lpFormat
,
(
DWORD
)
thunk
,
dwInstance
,
dwFlags
);
if
(
ret
==
MMSYSERR_NOERROR
)
{
if
(
lphWaveOut
!=
NULL
)
*
lphWaveOut
=
HWAVEOUT_16
(
hWaveOut
);
if
(
lphWaveOut
!=
NULL
&&
ret
==
MMSYSERR_NOERROR
)
*
lphWaveOut
=
HWAVEOUT_16
(
hWaveOut
);
if
(
ret
==
MMSYSERR_NOERROR
&&
!
(
dwFlags
&
WAVE_FORMAT_QUERY
))
MMSYSTDRV_SetHandle
(
thunk
,
(
void
*
)
hWaveOut
);
}
else
MMSYSTDRV_DeleteThunk
(
thunk
);
return
ret
;
}
...
...
@@ -1550,11 +1549,10 @@ UINT16 WINAPI waveInOpen16(HWAVEIN16* lphWaveIn, UINT16 uDeviceID,
ret
=
waveInOpen
(
&
hWaveIn
,
(
uDeviceID
==
(
UINT16
)
-
1
)
?
(
UINT
)
-
1
:
uDeviceID
,
lpFormat
,
(
DWORD
)
thunk
,
dwInstance
,
dwFlags
);
if
(
ret
==
MMSYSERR_NOERROR
)
{
if
(
lphWaveIn
!=
NULL
)
*
lphWaveIn
=
HWAVEIN_16
(
hWaveIn
);
if
(
lphWaveIn
!=
NULL
&&
ret
==
MMSYSERR_NOERROR
)
*
lphWaveIn
=
HWAVEIN_16
(
hWaveIn
);
if
(
ret
==
MMSYSERR_NOERROR
&&
!
(
dwFlags
&
WAVE_FORMAT_QUERY
))
MMSYSTDRV_SetHandle
(
thunk
,
(
void
*
)
hWaveIn
);
}
else
MMSYSTDRV_DeleteThunk
(
thunk
);
return
ret
;
}
...
...
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