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
50ec1d68
Commit
50ec1d68
authored
May 08, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add on the size of the whole OBJREF structure in the case of custom marshaling.
parent
340f7a3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
marshal.c
dlls/ole32/marshal.c
+7
-7
No files found.
dlls/ole32/marshal.c
View file @
50ec1d68
...
...
@@ -1450,13 +1450,13 @@ HRESULT WINAPI CoGetMarshalSizeMax(ULONG *pulSize, REFIID riid, IUnknown *pUnk,
hr
=
IMarshal_GetMarshalSizeMax
(
pMarshal
,
riid
,
pUnk
,
dwDestContext
,
pvDestContext
,
mshlFlags
,
pulSize
);
/* add on the size of the common header */
*
pulSize
+=
FIELD_OFFSET
(
OBJREF
,
u_objref
);
/* if custom marshaling, add on size of custom header */
if
(
!
IsEqualCLSID
(
&
marshaler_clsid
,
&
CLSID_DfMarshal
))
*
pulSize
+=
FIELD_OFFSET
(
OBJREF
,
u_objref
.
u_custom
.
pData
)
-
FIELD_OFFSET
(
OBJREF
,
u_objref
.
u_custom
);
if
(
IsEqualCLSID
(
&
marshaler_clsid
,
&
CLSID_DfMarshal
))
/* add on the size of the common header */
*
pulSize
+=
FIELD_OFFSET
(
OBJREF
,
u_objref
);
else
/* custom marshaling: add on the size of the whole OBJREF structure
* like native does */
*
pulSize
+=
sizeof
(
OBJREF
);
IMarshal_Release
(
pMarshal
);
return
hr
;
...
...
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