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
85f8f30a
Commit
85f8f30a
authored
Mar 12, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Use RpcMsg->Buffer instead of BufferStart since the latter isn't always set.
parent
3df2c88d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+5
-5
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
85f8f30a
...
@@ -3278,13 +3278,13 @@ unsigned char * WINAPI NdrComplexStructMarshall(PMIDL_STUB_MESSAGE pStubMsg,
...
@@ -3278,13 +3278,13 @@ unsigned char * WINAPI NdrComplexStructMarshall(PMIDL_STUB_MESSAGE pStubMsg,
/* get the buffer pointer after complex array data, but before
/* get the buffer pointer after complex array data, but before
* pointer data */
* pointer data */
pStubMsg
->
BufferLength
=
pStubMsg
->
Buffer
-
pStubMsg
->
BufferStart
;
pStubMsg
->
BufferLength
=
pStubMsg
->
Buffer
-
(
unsigned
char
*
)
pStubMsg
->
RpcMsg
->
Buffer
;
pStubMsg
->
IgnoreEmbeddedPointers
=
1
;
pStubMsg
->
IgnoreEmbeddedPointers
=
1
;
NdrComplexStructBufferSize
(
pStubMsg
,
pMemory
,
pFormat
);
NdrComplexStructBufferSize
(
pStubMsg
,
pMemory
,
pFormat
);
pStubMsg
->
IgnoreEmbeddedPointers
=
saved_ignore_embedded
;
pStubMsg
->
IgnoreEmbeddedPointers
=
saved_ignore_embedded
;
/* save it for use by embedded pointer code later */
/* save it for use by embedded pointer code later */
pStubMsg
->
PointerBufferMark
=
pStubMsg
->
BufferStart
+
pStubMsg
->
BufferLength
;
pStubMsg
->
PointerBufferMark
=
(
unsigned
char
*
)
pStubMsg
->
RpcMsg
->
Buffer
+
pStubMsg
->
BufferLength
;
TRACE
(
"difference = 0x%x
\n
"
,
pStubMsg
->
PointerBufferMark
-
pStubMsg
->
Buffer
);
TRACE
(
"difference = 0x%x
\n
"
,
pStubMsg
->
PointerBufferMark
-
pStubMsg
->
Buffer
);
pointer_buffer_mark_set
=
1
;
pointer_buffer_mark_set
=
1
;
...
@@ -3840,14 +3840,14 @@ unsigned char * WINAPI NdrComplexArrayMarshall(PMIDL_STUB_MESSAGE pStubMsg,
...
@@ -3840,14 +3840,14 @@ unsigned char * WINAPI NdrComplexArrayMarshall(PMIDL_STUB_MESSAGE pStubMsg,
/* get the buffer pointer after complex array data, but before
/* get the buffer pointer after complex array data, but before
* pointer data */
* pointer data */
pStubMsg
->
BufferLength
=
pStubMsg
->
Buffer
-
pStubMsg
->
BufferStart
;
pStubMsg
->
BufferLength
=
pStubMsg
->
Buffer
-
(
unsigned
char
*
)
pStubMsg
->
RpcMsg
->
Buffer
;
pStubMsg
->
IgnoreEmbeddedPointers
=
1
;
pStubMsg
->
IgnoreEmbeddedPointers
=
1
;
NdrComplexArrayBufferSize
(
pStubMsg
,
pMemory
,
pFormat
);
NdrComplexArrayBufferSize
(
pStubMsg
,
pMemory
,
pFormat
);
pStubMsg
->
IgnoreEmbeddedPointers
=
saved_ignore_embedded
;
pStubMsg
->
IgnoreEmbeddedPointers
=
saved_ignore_embedded
;
/* save it for use by embedded pointer code later */
/* save it for use by embedded pointer code later */
pStubMsg
->
PointerBufferMark
=
pStubMsg
->
BufferStart
+
pStubMsg
->
BufferLength
;
pStubMsg
->
PointerBufferMark
=
(
unsigned
char
*
)
pStubMsg
->
RpcMsg
->
Buffer
+
pStubMsg
->
BufferLength
;
TRACE
(
"difference = 0x%x
\n
"
,
pStubMsg
->
Buffer
-
pStubMsg
->
BufferStart
);
TRACE
(
"difference = 0x%x
\n
"
,
pStubMsg
->
Buffer
-
(
unsigned
char
*
)
pStubMsg
->
RpcMsg
->
Buffer
);
pointer_buffer_mark_set
=
1
;
pointer_buffer_mark_set
=
1
;
/* restore fields */
/* restore fields */
...
...
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