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
3e01da18
Commit
3e01da18
authored
Aug 29, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix NdrStubGetBuffer to use the IRpcChannelBuffer object since
IRpcChannelBuffer_GetBuffer may put extra data onto the wire for ORPC calls.
parent
3535b70a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
cstub.c
dlls/rpcrt4/cstub.c
+14
-4
No files found.
dlls/rpcrt4/cstub.c
View file @
3e01da18
...
...
@@ -280,14 +280,24 @@ void WINAPI NdrStubInitialize(PRPC_MESSAGE pRpcMsg,
/***********************************************************************
* NdrStubGetBuffer [RPCRT4.@]
*/
void
WINAPI
NdrStubGetBuffer
(
LPRPCSTUBBUFFER
This
,
void
WINAPI
NdrStubGetBuffer
(
LPRPCSTUBBUFFER
iface
,
LPRPCCHANNELBUFFER
pRpcChannelBuffer
,
PMIDL_STUB_MESSAGE
pStubMsg
)
{
TRACE
(
"(%p,%p)
\n
"
,
This
,
pStubMsg
);
pStubMsg
->
pRpcChannelBuffer
=
pRpcChannelBuffer
;
CStdStubBuffer
*
This
=
(
CStdStubBuffer
*
)
iface
;
HRESULT
hr
;
TRACE
(
"(%p, %p, %p)
\n
"
,
This
,
pRpcChannelBuffer
,
pStubMsg
);
pStubMsg
->
RpcMsg
->
BufferLength
=
pStubMsg
->
BufferLength
;
I_RpcGetBuffer
(
pStubMsg
->
RpcMsg
);
/* ? */
hr
=
IRpcChannelBuffer_GetBuffer
(
pRpcChannelBuffer
,
(
RPCOLEMESSAGE
*
)
pStubMsg
->
RpcMsg
,
STUB_HEADER
(
This
).
piid
);
if
(
FAILED
(
hr
))
{
RpcRaiseException
(
hr
);
return
;
}
pStubMsg
->
BufferStart
=
pStubMsg
->
RpcMsg
->
Buffer
;
pStubMsg
->
BufferEnd
=
pStubMsg
->
BufferStart
+
pStubMsg
->
BufferLength
;
pStubMsg
->
Buffer
=
pStubMsg
->
BufferStart
;
...
...
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