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
825a1b75
Commit
825a1b75
authored
May 21, 2009
by
Huw Davies
Committed by
Alexandre Julliard
May 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Use the current stream position to determine the marshal data size.
parent
8e6e015e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
usrmarshal.c
dlls/ole32/tests/usrmarshal.c
+8
-4
No files found.
dlls/ole32/tests/usrmarshal.c
View file @
825a1b75
...
...
@@ -564,7 +564,8 @@ static void marshal_WdtpInterfacePointer(DWORD umcb_ctx, DWORD ctx)
HGLOBAL
h
=
GlobalAlloc
(
GMEM_MOVEABLE
,
0
);
IStream
*
stm
;
void
*
marshal_data
;
LARGE_INTEGER
pos
;
LARGE_INTEGER
zero
;
ULARGE_INTEGER
pos
;
DWORD
marshal_size
;
/* shows that the WdtpInterfacePointer functions don't marshal anything for
...
...
@@ -587,8 +588,11 @@ static void marshal_WdtpInterfacePointer(DWORD umcb_ctx, DWORD ctx)
CreateStreamOnHGlobal
(
h
,
TRUE
,
&
stm
);
CoMarshalInterface
(
stm
,
&
IID_IUnknown
,
unk
,
LOWORD
(
ctx
),
NULL
,
MSHLFLAGS_NORMAL
);
marshal_size
=
GlobalSize
(
h
);
zero
.
QuadPart
=
0
;
IStream_Seek
(
stm
,
zero
,
STREAM_SEEK_CUR
,
&
pos
);
marshal_size
=
pos
.
u
.
LowPart
;
marshal_data
=
GlobalLock
(
h
);
trace
(
"marshal_size %x
\n
"
,
marshal_size
);
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
NULL
,
0
,
umcb_ctx
);
size
=
WdtpInterfacePointer_UserSize
(
&
umcb
.
Flags
,
ctx
,
0
,
unk
,
&
IID_IUnknown
);
...
...
@@ -608,8 +612,8 @@ static void marshal_WdtpInterfacePointer(DWORD umcb_ctx, DWORD ctx)
ok
(
!
memcmp
(
marshal_data
,
wireip
,
marshal_size
),
"buffer mismatch
\n
"
);
GlobalUnlock
(
h
);
pos
.
QuadPart
=
0
;
IStream_Seek
(
stm
,
pos
,
STREAM_SEEK_SET
,
NULL
);
zero
.
QuadPart
=
0
;
IStream_Seek
(
stm
,
zero
,
STREAM_SEEK_SET
,
NULL
);
CoReleaseMarshalData
(
stm
);
IStream_Release
(
stm
);
...
...
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