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
fa64950e
Commit
fa64950e
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 a test for the failure case of same-apartment unmarshaling when…
ole32: Add a test for the failure case of same-apartment unmarshaling when passing in an unsupported iid.
parent
49fc8ac7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
marshal.c
dlls/ole32/tests/marshal.c
+27
-0
No files found.
dlls/ole32/tests/marshal.c
View file @
fa64950e
...
...
@@ -392,6 +392,32 @@ static void test_marshal_and_unmarshal_invalid(void)
end_host_object
(
tid
,
thread
);
}
static
void
test_same_apartment_unmarshal_failure
(
void
)
{
HRESULT
hr
;
IStream
*
pStream
;
IUnknown
*
pProxy
;
static
const
LARGE_INTEGER
llZero
;
cLocks
=
0
;
hr
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
pStream
);
ok_ole_success
(
hr
,
CreateStreamOnHGlobal
);
hr
=
CoMarshalInterface
(
pStream
,
&
IID_IUnknown
,
(
IUnknown
*
)
&
Test_ClassFactory
,
MSHCTX_INPROC
,
NULL
,
MSHLFLAGS_NORMAL
);
ok_ole_success
(
hr
,
CoMarshalInterface
);
ok_more_than_one_lock
();
hr
=
IStream_Seek
(
pStream
,
llZero
,
STREAM_SEEK_SET
,
NULL
);
ok_ole_success
(
hr
,
IStream_Seek
);
hr
=
CoUnmarshalInterface
(
pStream
,
&
IID_IParseDisplayName
,
(
void
**
)
&
pProxy
);
ok
(
hr
==
E_NOINTERFACE
,
"CoUnmarshalInterface should have returned E_NOINTERFACE instead of 0x%08x
\n
"
,
hr
);
ok_no_locks
();
}
/* tests success case of an interthread marshal */
static
void
test_interthread_marshal_and_unmarshal
(
void
)
{
...
...
@@ -2388,6 +2414,7 @@ START_TEST(marshal)
test_normal_marshal_and_release
();
test_normal_marshal_and_unmarshal
();
test_marshal_and_unmarshal_invalid
();
test_same_apartment_unmarshal_failure
();
test_interthread_marshal_and_unmarshal
();
test_proxy_marshal_and_unmarshal
();
test_proxy_marshal_and_unmarshal2
();
...
...
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