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
5b27cdf9
Commit
5b27cdf9
authored
Aug 07, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Ensure IDirectMusicPort is initialised when calling IDirectMusicPerformance::PChannelInfo.
parent
203272ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
performance.c
dlls/dmime/performance.c
+9
-0
performance.c
dlls/dmime/tests/performance.c
+1
-1
No files found.
dlls/dmime/performance.c
View file @
5b27cdf9
...
...
@@ -588,7 +588,16 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_AssignPChannel (LPDIRECTMUSIC
static
HRESULT
WINAPI
IDirectMusicPerformance8Impl_PChannelInfo
(
LPDIRECTMUSICPERFORMANCE8
iface
,
DWORD
dwPChannel
,
IDirectMusicPort
**
ppPort
,
DWORD
*
pdwGroup
,
DWORD
*
pdwMChannel
)
{
IDirectMusicPerformance8Impl
*
This
=
(
IDirectMusicPerformance8Impl
*
)
iface
;
DMUS_PORTPARAMS8
dmusportparams
;
GUID
def
;
FIXME
(
"(%p, %d, %p, %p, %p): stub
\n
"
,
This
,
dwPChannel
,
ppPort
,
pdwGroup
,
pdwMChannel
);
dmusportparams
.
dwSize
=
sizeof
(
DMUS_PORTPARAMS8
);
dmusportparams
.
dwValidParams
=
0
;
IDirectMusic8_GetDefaultPort
(
This
->
pDirectMusic
,
&
def
);
IDirectMusic8_CreatePort
(
This
->
pDirectMusic
,
&
def
,
&
dmusportparams
,
ppPort
,
NULL
);
return
S_OK
;
}
...
...
dlls/dmime/tests/performance.c
View file @
5b27cdf9
...
...
@@ -45,7 +45,7 @@ static void test_PChannelInfo(void)
pDirectMusicPort
=
NULL
;
hr
=
IDirectMusicPerformance8_PChannelInfo
(
idmusicperformance
,
0
,
&
pDirectMusicPort
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"Failed to call PChannelInfo (%x)
\n
"
,
hr
);
todo_wine
ok
(
pDirectMusicPort
!=
NULL
,
"IDirectMusicPort not set
\n
"
);
ok
(
pDirectMusicPort
!=
NULL
,
"IDirectMusicPort not set
\n
"
);
if
(
hr
==
S_OK
&&
pDirectMusicPort
!=
NULL
)
IDirectMusicPort_Release
(
pDirectMusicPort
);
}
...
...
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