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
89ef7b59
Commit
89ef7b59
authored
Apr 25, 2017
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmscript/tests: Just use proper IUnknown implementations for aggregation.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
47df3778
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
dmscript.c
dlls/dmscript/tests/dmscript.c
+6
-9
No files found.
dlls/dmscript/tests/dmscript.c
View file @
89ef7b59
...
...
@@ -88,11 +88,7 @@ static void test_COM(void)
ULONG
refcount
;
HRESULT
hr
;
/* COM aggregation */
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicScript
,
(
IUnknown
*
)
&
dms
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
dms
);
todo_wine
ok
(
hr
==
E_POINTER
,
"DirectMusicScript create failed: %08x, expected E_POINTER
\n
"
,
hr
);
/* An invalid non-NULL pUnkOuter crashes newer Windows versions */
/* COM aggregation. An invalid non-NULL outer IUnknown crashes newer Windows versions */
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicScript
,
&
unk_obj
.
IUnknown_iface
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
unk_obj
.
inner_unk
);
ok
(
hr
==
CLASS_E_NOAGGREGATION
,
...
...
@@ -137,15 +133,16 @@ static void test_COM_scripttrack(void)
IDirectMusicTrack
*
dmt
;
IPersistStream
*
ps
;
IUnknown
*
unk
;
struct
unk_impl
unk_obj
=
{{
&
unk_vtbl
},
19
,
NULL
};
ULONG
refcount
;
HRESULT
hr
;
/* COM aggregation */
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicScriptTrack
,
(
IUnknown
*
)
&
dmt
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
dmt
);
/* COM aggregation
. An invalid non-NULL outer IUnknown crashes newer Windows versions
*/
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicScriptTrack
,
&
unk_obj
.
IUnknown_iface
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
unk_obj
.
inner_unk
);
ok
(
hr
==
CLASS_E_NOAGGREGATION
,
"DirectMusicScriptTrack create failed: %08x, expected CLASS_E_NOAGGREGATION
\n
"
,
hr
);
ok
(
!
dmt
,
"dmt = %p
\n
"
,
dmt
);
ok
(
!
unk_obj
.
inner_unk
,
"unk_obj.inner_unk = %p
\n
"
,
unk_obj
.
inner_unk
);
/* Invalid RIID */
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicScriptTrack
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
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