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
417b9d80
Commit
417b9d80
authored
Dec 08, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Save the buffer in EmbeddedPointerMemorySize, like EmbeddedPointerUnmarshall does.
parent
d7a0de30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+13
-1
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
417b9d80
...
...
@@ -1464,12 +1464,18 @@ static unsigned long EmbeddedPointerMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned
char
*
Mark
=
pStubMsg
->
BufferMark
;
unsigned
rep
,
count
,
stride
;
unsigned
i
;
unsigned
char
*
saved_buffer
=
NULL
;
TRACE
(
"(%p,%p)
\n
"
,
pStubMsg
,
pFormat
);
if
(
pStubMsg
->
IgnoreEmbeddedPointers
)
return
0
;
FIXME
(
"(%p,%p): stub
\n
"
,
pStubMsg
,
pFormat
);
if
(
pStubMsg
->
PointerBufferMark
)
{
saved_buffer
=
pStubMsg
->
Buffer
;
pStubMsg
->
Buffer
=
pStubMsg
->
PointerBufferMark
;
pStubMsg
->
PointerBufferMark
=
NULL
;
}
if
(
*
pFormat
!=
RPC_FC_PP
)
return
0
;
pFormat
+=
2
;
...
...
@@ -1509,6 +1515,12 @@ static unsigned long EmbeddedPointerMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
pFormat
+=
8
*
count
;
}
if
(
saved_buffer
)
{
pStubMsg
->
PointerBufferMark
=
pStubMsg
->
Buffer
;
pStubMsg
->
Buffer
=
saved_buffer
;
}
return
0
;
}
...
...
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