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
5700fe8a
Commit
5700fe8a
authored
Jul 24, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Set BufferMark before calling EmbeddedPointerMarshall,…
rpcrt4: Set BufferMark before calling EmbeddedPointerMarshall, EmbeddedPointerUnmarshall or EmbeddedPointerMemorySize.
parent
ba9158e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+4
-0
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
5700fe8a
...
...
@@ -3555,7 +3555,9 @@ unsigned char * WINAPI NdrFixedArrayMarshall(PMIDL_STUB_MESSAGE pStubMsg,
total_size
=
pLgFArrayFormat
->
total_size
;
pFormat
=
(
unsigned
char
*
)(
pLgFArrayFormat
+
1
);
}
memcpy
(
pStubMsg
->
Buffer
,
pMemory
,
total_size
);
pStubMsg
->
BufferMark
=
pStubMsg
->
Buffer
;
pStubMsg
->
Buffer
+=
total_size
;
pFormat
=
EmbeddedPointerMarshall
(
pStubMsg
,
pMemory
,
pFormat
);
...
...
@@ -3601,6 +3603,7 @@ unsigned char * WINAPI NdrFixedArrayUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
if
(
fMustAlloc
||
!*
ppMemory
)
*
ppMemory
=
NdrAllocate
(
pStubMsg
,
total_size
);
memcpy
(
*
ppMemory
,
pStubMsg
->
Buffer
,
total_size
);
pStubMsg
->
BufferMark
=
pStubMsg
->
Buffer
;
pStubMsg
->
Buffer
+=
total_size
;
pFormat
=
EmbeddedPointerUnmarshall
(
pStubMsg
,
ppMemory
,
pFormat
,
fMustAlloc
);
...
...
@@ -3678,6 +3681,7 @@ unsigned long WINAPI NdrFixedArrayMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
total_size
=
pLgFArrayFormat
->
total_size
;
pFormat
=
(
unsigned
char
*
)(
pLgFArrayFormat
+
1
);
}
pStubMsg
->
BufferMark
=
pStubMsg
->
Buffer
;
pStubMsg
->
Buffer
+=
total_size
;
pStubMsg
->
MemorySize
+=
total_size
;
...
...
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