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
...
@@ -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
);
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
)
{
switch
(
dwStage
)
{
case
DMUS_PATH_BUFFER
:
case
DMUS_PATH_BUFFER
:
{
if
(
This
->
pDSBuffer
)
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectSoundBuffer8
))
{
{
IDirectSoundBuffer8_QueryInterface
(
This
->
pDSBuffer
,
&
IID_IDirectSoundBuffer8
,
ppObject
);
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectSoundBuffer8
))
{
TRACE
(
"returning %p
\n
"
,
*
ppObject
);
IDirectSoundBuffer8_QueryInterface
(
This
->
pDSBuffer
,
&
IID_IDirectSoundBuffer8
,
ppObject
);
return
S_OK
;
TRACE
(
"returning %p
\n
"
,
*
ppObject
);
}
else
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectSound3DBuffer
))
{
return
S_OK
;
IDirectSoundBuffer8_QueryInterface
(
This
->
pDSBuffer
,
&
IID_IDirectSound3DBuffer
,
ppObject
);
}
else
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectSound3DBuffer
))
{
TRACE
(
"returning %p
\n
"
,
*
ppObject
);
IDirectSoundBuffer8_QueryInterface
(
This
->
pDSBuffer
,
&
IID_IDirectSound3DBuffer
,
ppObject
);
return
S_OK
;
TRACE
(
"returning %p
\n
"
,
*
ppObject
);
}
else
{
return
S_OK
;
FIXME
(
"Bad iid
\n
"
);
}
else
{
}
FIXME
(
"Bad iid
\n
"
);
}
}
break
;
}
break
;
case
DMUS_PATH_PRIMARY_BUFFER
:
{
case
DMUS_PATH_PRIMARY_BUFFER
:
{
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectSound3DListener
))
{
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