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
9021b967
Commit
9021b967
authored
Oct 27, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Oct 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Release the marshalled data in the expected buffers.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6aa797e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
usrmarshal.c
dlls/ole32/tests/usrmarshal.c
+21
-0
No files found.
dlls/ole32/tests/usrmarshal.c
View file @
9021b967
...
...
@@ -699,6 +699,8 @@ static void test_marshal_STGMEDIUM(void)
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
NULL
,
0
,
MSHCTX_DIFFERENTMACHINE
);
expect_size
=
WdtpInterfacePointer_UserSize
(
&
umcb
.
Flags
,
umcb
.
Flags
,
2
*
sizeof
(
DWORD
),
unk
,
&
IID_IUnknown
);
expect_buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
expect_size
);
*
(
DWORD
*
)
expect_buffer
=
TYMED_NULL
;
*
((
DWORD
*
)
expect_buffer
+
1
)
=
0xdeadbeef
;
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
expect_buffer
,
expect_size
,
MSHCTX_DIFFERENTMACHINE
);
expect_buffer_end
=
WdtpInterfacePointer_UserMarshal
(
&
umcb
.
Flags
,
umcb
.
Flags
,
expect_buffer
+
2
*
sizeof
(
DWORD
),
unk
,
&
IID_IUnknown
);
...
...
@@ -735,6 +737,14 @@ static void test_marshal_STGMEDIUM(void)
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
NULL
,
0
,
MSHCTX_DIFFERENTMACHINE
);
STGMEDIUM_UserFree
(
&
umcb
.
Flags
,
&
med2
);
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
expect_buffer
,
expect_size
,
MSHCTX_DIFFERENTMACHINE
);
med2
.
tymed
=
TYMED_NULL
;
U
(
med2
).
pstm
=
NULL
;
med2
.
pUnkForRelease
=
NULL
;
STGMEDIUM_UserUnmarshal
(
&
umcb
.
Flags
,
expect_buffer
,
&
med2
);
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
NULL
,
0
,
MSHCTX_DIFFERENTMACHINE
);
STGMEDIUM_UserFree
(
&
umcb
.
Flags
,
&
med2
);
HeapFree
(
GetProcessHeap
(),
0
,
expect_buffer
);
/* TYMED_ISTREAM with pUnkForRelease */
...
...
@@ -746,6 +756,9 @@ static void test_marshal_STGMEDIUM(void)
expect_buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
expect_size
);
/* There may be a hole between the two interfaces so init the buffer to something */
memset
(
expect_buffer
,
0xcc
,
expect_size
);
*
(
DWORD
*
)
expect_buffer
=
TYMED_ISTREAM
;
*
((
DWORD
*
)
expect_buffer
+
1
)
=
0xdeadbeef
;
*
((
DWORD
*
)
expect_buffer
+
2
)
=
0xcafe
;
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
expect_buffer
,
expect_size
,
MSHCTX_DIFFERENTMACHINE
);
expect_buffer_end
=
WdtpInterfacePointer_UserMarshal
(
&
umcb
.
Flags
,
umcb
.
Flags
,
expect_buffer
+
3
*
sizeof
(
DWORD
),
(
IUnknown
*
)
stm
,
&
IID_IStream
);
expect_buffer_end
=
WdtpInterfacePointer_UserMarshal
(
&
umcb
.
Flags
,
umcb
.
Flags
,
expect_buffer_end
,
unk
,
&
IID_IUnknown
);
...
...
@@ -786,6 +799,14 @@ static void test_marshal_STGMEDIUM(void)
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
NULL
,
0
,
MSHCTX_DIFFERENTMACHINE
);
STGMEDIUM_UserFree
(
&
umcb
.
Flags
,
&
med2
);
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
expect_buffer
,
expect_size
,
MSHCTX_DIFFERENTMACHINE
);
med2
.
tymed
=
TYMED_NULL
;
U
(
med2
).
pstm
=
NULL
;
med2
.
pUnkForRelease
=
NULL
;
STGMEDIUM_UserUnmarshal
(
&
umcb
.
Flags
,
expect_buffer
,
&
med2
);
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
NULL
,
0
,
MSHCTX_DIFFERENTMACHINE
);
STGMEDIUM_UserFree
(
&
umcb
.
Flags
,
&
med2
);
HeapFree
(
GetProcessHeap
(),
0
,
expect_buffer
);
}
...
...
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