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
4b787aa9
Commit
4b787aa9
authored
Sep 05, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Implement IDirectMusicPerformance8_ClonePMsg.
parent
0c4e1e43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
performance.c
dlls/dmime/performance.c
+14
-5
dmime.c
dlls/dmime/tests/dmime.c
+4
-5
No files found.
dlls/dmime/performance.c
View file @
4b787aa9
...
...
@@ -1071,13 +1071,22 @@ static HRESULT WINAPI performance_StopEx(IDirectMusicPerformance8 *iface, IUnkno
return
S_OK
;
}
static
HRESULT
WINAPI
performance_ClonePMsg
(
IDirectMusicPerformance8
*
iface
,
DMUS_PMSG
*
pSourcePMSG
,
DMUS_PMSG
**
ppCopyPMSG
)
static
HRESULT
WINAPI
performance_ClonePMsg
(
IDirectMusicPerformance8
*
iface
,
DMUS_PMSG
*
msg
,
DMUS_PMSG
**
clone
)
{
struct
performance
*
This
=
impl_from_IDirectMusicPerformance8
(
iface
);
struct
performance
*
This
=
impl_from_IDirectMusicPerformance8
(
iface
);
HRESULT
hr
;
FIXME
(
"(%p, %p, %p): stub
\n
"
,
This
,
pSourcePMSG
,
ppCopyPMSG
);
return
S_OK
;
TRACE
(
"(%p, %p, %p)
\n
"
,
This
,
msg
,
clone
);
if
(
!
msg
||
!
clone
)
return
E_POINTER
;
if
(
FAILED
(
hr
=
IDirectMusicPerformance8_AllocPMsg
(
iface
,
msg
->
dwSize
,
clone
)))
return
hr
;
memcpy
(
*
clone
,
msg
,
msg
->
dwSize
);
if
(
msg
->
pTool
)
IDirectMusicTool_AddRef
(
msg
->
pTool
);
if
(
msg
->
pGraph
)
IDirectMusicGraph_AddRef
(
msg
->
pGraph
);
if
(
msg
->
punkUser
)
IUnknown_AddRef
(
msg
->
punkUser
);
return
S_OK
;
}
static
HRESULT
WINAPI
performance_CreateAudioPath
(
IDirectMusicPerformance8
*
iface
,
...
...
dlls/dmime/tests/dmime.c
View file @
4b787aa9
...
...
@@ -1805,13 +1805,13 @@ static void test_performance_pmsg(void)
ok
(
hr
==
E_INVALIDARG
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicPerformance8_ClonePMsg
((
IDirectMusicPerformance8
*
)
performance
,
msg
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicPerformance8_ClonePMsg
((
IDirectMusicPerformance8
*
)
performance
,
NULL
,
&
clone
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
clone
=
NULL
;
hr
=
IDirectMusicPerformance8_ClonePMsg
((
IDirectMusicPerformance8
*
)
performance
,
msg
,
&
clone
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
clone
!=
NULL
,
"got %p
\n
"
,
clone
);
ok
(
clone
!=
NULL
,
"got %p
\n
"
,
clone
);
msg
->
mtTime
=
500
;
msg
->
dwFlags
=
DMUS_PMSGF_MUSICTIME
;
...
...
@@ -1822,8 +1822,7 @@ static void test_performance_pmsg(void)
hr
=
IDirectMusicPerformance_FreePMsg
(
performance
,
msg
);
ok
(
hr
==
DMUS_E_CANNOT_FREE
,
"got %#lx
\n
"
,
hr
);
if
(
!
clone
)
hr
=
S_OK
;
else
hr
=
IDirectMusicPerformance_FreePMsg
(
performance
,
clone
);
hr
=
IDirectMusicPerformance_FreePMsg
(
performance
,
clone
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
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