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
fcae0167
Commit
fcae0167
authored
Feb 26, 2014
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Do not try to query a NULL direct sound buffer.
parent
4f26fb0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
audiopath.c
dlls/dmime/audiopath.c
+16
-15
No files found.
dlls/dmime/audiopath.c
View file @
fcae0167
...
...
@@ -108,21 +108,22 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_IDirectMusicAudioPath_GetObjectI
FIXME
(
"(%p, %d, %d, %d, %s, %d, %s, %p): stub
\n
"
,
This
,
dwPChannel
,
dwStage
,
dwBuffer
,
debugstr_dmguid
(
guidObject
),
dwIndex
,
debugstr_dmguid
(
iidInterface
),
ppObject
);
switch
(
dwStage
)
{
case
DMUS_PATH_BUFFER
:
{
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectSoundBuffer8
))
{
IDirectSoundBuffer8_QueryInterface
(
This
->
pDSBuffer
,
&
IID_IDirectSoundBuffer8
,
ppObject
);
TRACE
(
"returning %p
\n
"
,
*
ppObject
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectSound3DBuffer
))
{
IDirectSoundBuffer8_QueryInterface
(
This
->
pDSBuffer
,
&
IID_IDirectSound3DBuffer
,
ppObject
);
TRACE
(
"returning %p
\n
"
,
*
ppObject
);
return
S_OK
;
}
else
{
FIXME
(
"Bad iid
\n
"
);
}
}
break
;
case
DMUS_PATH_BUFFER
:
if
(
This
->
pDSBuffer
)
{
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectSoundBuffer8
))
{
IDirectSoundBuffer8_QueryInterface
(
This
->
pDSBuffer
,
&
IID_IDirectSoundBuffer8
,
ppObject
);
TRACE
(
"returning %p
\n
"
,
*
ppObject
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectSound3DBuffer
))
{
IDirectSoundBuffer8_QueryInterface
(
This
->
pDSBuffer
,
&
IID_IDirectSound3DBuffer
,
ppObject
);
TRACE
(
"returning %p
\n
"
,
*
ppObject
);
return
S_OK
;
}
else
{
FIXME
(
"Bad iid
\n
"
);
}
}
break
;
case
DMUS_PATH_PRIMARY_BUFFER
:
{
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectSound3DListener
))
{
...
...
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