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
41b1dce0
Commit
41b1dce0
authored
May 27, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmscript/tests: Test unimplemented IPersistStream methods in DMScript.
parent
444fff43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
script.c
dlls/dmscript/script.c
+0
-2
dmscript.c
dlls/dmscript/tests/dmscript.c
+28
-0
No files found.
dlls/dmscript/script.c
View file @
41b1dce0
...
...
@@ -430,8 +430,6 @@ static HRESULT WINAPI IDirectMusicScriptImpl_IPersistStream_GetClassID (LPPERSIS
}
static
HRESULT
WINAPI
IDirectMusicScriptImpl_IPersistStream_IsDirty
(
LPPERSISTSTREAM
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicScriptImpl
,
PersistStreamVtbl
,
iface
);
FIXME
(
"(%p): stub, always S_FALSE
\n
"
,
This
);
return
S_FALSE
;
}
...
...
dlls/dmscript/tests/dmscript.c
View file @
41b1dce0
...
...
@@ -175,6 +175,33 @@ static void test_COM_scripttrack(void)
while
(
IDirectMusicTrack_Release
(
dmt
));
}
static
void
test_dmscript
(
void
)
{
IDirectMusicScript
*
dms
;
IPersistStream
*
ps
;
CLSID
class
;
ULARGE_INTEGER
size
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_DirectMusicScript
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectMusicScript
,
(
void
**
)
&
dms
);
ok
(
hr
==
S_OK
,
"DirectMusicScript create failed: %08x, expected S_OK
\n
"
,
hr
);
/* Unimplemented IPersistStream methods */
hr
=
IDirectMusicScript_QueryInterface
(
dms
,
&
IID_IPersistStream
,
(
void
**
)
&
ps
);
ok
(
hr
==
S_OK
,
"QueryInterface for IID_IPersistStream failed: %08x
\n
"
,
hr
);
hr
=
IPersistStream_GetClassID
(
ps
,
&
class
);
ok
(
hr
==
E_NOTIMPL
,
"IPersistStream_GetClassID failed: %08x
\n
"
,
hr
);
hr
=
IPersistStream_IsDirty
(
ps
);
ok
(
hr
==
S_FALSE
,
"IPersistStream_IsDirty failed: %08x
\n
"
,
hr
);
hr
=
IPersistStream_GetSizeMax
(
ps
,
&
size
);
ok
(
hr
==
E_NOTIMPL
,
"IPersistStream_GetSizeMax failed: %08x
\n
"
,
hr
);
hr
=
IPersistStream_Save
(
ps
,
NULL
,
TRUE
);
ok
(
hr
==
E_NOTIMPL
,
"IPersistStream_Save failed: %08x
\n
"
,
hr
);
while
(
IDirectMusicScript_Release
(
dms
));
}
START_TEST
(
dmscript
)
{
CoInitialize
(
NULL
);
...
...
@@ -187,6 +214,7 @@ START_TEST(dmscript)
}
test_COM
();
test_COM_scripttrack
();
test_dmscript
();
CoUninitialize
();
}
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