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
0adf2af7
Commit
0adf2af7
authored
May 16, 2016
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Fixup IDirectSoundCaptureBuffer_QueryInterface.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a330b011
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
capture.c
dlls/dsound/capture.c
+6
-3
No files found.
dlls/dsound/capture.c
View file @
0adf2af7
...
...
@@ -50,7 +50,7 @@ typedef struct IDirectSoundCaptureBufferImpl
IDirectSoundCaptureBuffer8
IDirectSoundCaptureBuffer8_iface
;
IDirectSoundNotify
IDirectSoundNotify_iface
;
LONG
numIfaces
;
/* "in use interfaces" refcount */
LONG
ref
,
refn
;
LONG
ref
,
refn
,
has_dsc8
;
/* IDirectSoundCaptureBuffer fields */
DirectSoundCaptureDevice
*
device
;
DSCBUFFERDESC
*
pdscbd
;
...
...
@@ -240,8 +240,9 @@ static HRESULT WINAPI IDirectSoundCaptureBufferImpl_QueryInterface(IDirectSoundC
*
ppobj
=
NULL
;
if
(
IsEqualGUID
(
&
IID_IDirectSoundCaptureBuffer
,
riid
)
||
IsEqualGUID
(
&
IID_IDirectSoundCaptureBuffer8
,
riid
)
)
{
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
)
||
IsEqualIID
(
&
IID_IDirectSoundCaptureBuffer
,
riid
)
||
(
This
->
has_dsc8
&&
IsEqualIID
(
&
IID_IDirectSoundCaptureBuffer8
,
riid
))
)
{
IDirectSoundCaptureBuffer8_AddRef
(
iface
);
*
ppobj
=
iface
;
return
S_OK
;
...
...
@@ -1233,6 +1234,8 @@ static HRESULT WINAPI IDirectSoundCaptureImpl_CreateCaptureBuffer(IDirectSoundCa
if
(
hr
!=
DS_OK
)
WARN
(
"IDirectSoundCaptureBufferImpl_Create failed
\n
"
);
else
This
->
device
->
capture_buffer
->
has_dsc8
=
This
->
has_dsc8
;
return
hr
;
}
...
...
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