Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
49fc8ac7
Commit
49fc8ac7
authored
Jan 09, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add tests for passing invalid arguments to CoUnmarshalInterface.
parent
b1ee49a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
compobj.c
dlls/ole32/tests/compobj.c
+24
-0
No files found.
dlls/ole32/tests/compobj.c
View file @
49fc8ac7
...
...
@@ -528,6 +528,28 @@ static void test_CoGetPSClsid(void)
CoUninitialize
();
}
/* basic test, mainly for invalid arguments. see marshal.c for more */
static
void
test_CoUnmarshalInterface
(
void
)
{
IUnknown
*
pProxy
;
IStream
*
pStream
;
HRESULT
hr
;
hr
=
CoUnmarshalInterface
(
NULL
,
&
IID_IUnknown
,
(
void
**
)
&
pProxy
);
ok
(
hr
==
E_INVALIDARG
,
"CoUnmarshalInterface should have returned E_INVALIDARG instead of 0x%08x
\n
"
,
hr
);
hr
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
pStream
);
ok_ole_success
(
hr
,
"CreateStreamOnHGlobal"
);
hr
=
CoUnmarshalInterface
(
pStream
,
&
IID_IUnknown
,
(
void
**
)
&
pProxy
);
ok
(
hr
==
STG_E_READFAULT
,
"CoUnmarshalInterface should have returned STG_E_READFAULT instead of 0x%08x
\n
"
,
hr
);
hr
=
CoUnmarshalInterface
(
pStream
,
&
IID_IUnknown
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"CoUnmarshalInterface should have returned E_INVALIDARG instead of 0x%08x
\n
"
,
hr
);
IStream_Release
(
pStream
);
}
static
void
test_CoGetInterfaceAndReleaseStream
(
void
)
{
HRESULT
hr
;
...
...
@@ -541,6 +563,7 @@ static void test_CoGetInterfaceAndReleaseStream(void)
CoUninitialize
();
}
/* basic test, mainly for invalid arguments. see marshal.c for more */
static
void
test_CoMarshalInterface
(
void
)
{
IStream
*
pStream
;
...
...
@@ -627,6 +650,7 @@ START_TEST(compobj)
test_CoRegisterMessageFilter
();
test_CoRegisterPSClsid
();
test_CoGetPSClsid
();
test_CoUnmarshalInterface
();
test_CoGetInterfaceAndReleaseStream
();
test_CoMarshalInterface
();
test_CoMarshalInterThreadInterfaceInStream
();
...
...
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