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
ab908c41
Commit
ab908c41
authored
Jan 23, 2003
by
Waldeck Schutzer
Committed by
Alexandre Julliard
Jan 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure the parameter phas is correct by setting it equal to NULL in
query mode.
parent
701ab7dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
stream.c
dlls/msacm/stream.c
+6
-1
No files found.
dlls/msacm/stream.c
View file @
ab908c41
...
...
@@ -147,7 +147,12 @@ MMRESULT WINAPI acmStreamOpen(PHACMSTREAM phas, HACMDRIVER had, PWAVEFORMATEX pw
pwfxDst
->
wFormatTag
,
pwfxDst
->
nChannels
,
pwfxDst
->
nSamplesPerSec
,
pwfxDst
->
nAvgBytesPerSec
,
pwfxDst
->
nBlockAlign
,
pwfxDst
->
wBitsPerSample
,
pwfxDst
->
cbSize
);
if
((
fdwOpen
&
ACM_STREAMOPENF_QUERY
)
&&
phas
)
return
MMSYSERR_INVALPARAM
;
/* (WS) In query mode, phas should be NULL. If it is not, then instead
* of returning an error we are making sure it is NULL, preventing some
* applications that pass garbage for phas from crashing.
*/
if
(
fdwOpen
&
ACM_STREAMOPENF_QUERY
)
phas
=
NULL
;
if
(
pwfltr
&&
(
pwfxSrc
->
wFormatTag
!=
pwfxDst
->
wFormatTag
))
return
MMSYSERR_INVALPARAM
;
wfxSrcSize
=
wfxDstSize
=
sizeof
(
WAVEFORMATEX
);
...
...
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