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
c9e4ef73
Commit
c9e4ef73
authored
Aug 03, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Aug 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't free previous buffer in NdrGetBuffer.
parent
f7326173
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
rpc_message.c
dlls/rpcrt4/rpc_message.c
+2
-11
No files found.
dlls/rpcrt4/rpc_message.c
View file @
c9e4ef73
...
...
@@ -447,19 +447,10 @@ fail:
*/
RPC_STATUS
WINAPI
I_RpcGetBuffer
(
PRPC_MESSAGE
pMsg
)
{
RpcBinding
*
bind
=
(
RpcBinding
*
)
pMsg
->
Handle
;
TRACE
(
"(%p): BufferLength=%d
\n
"
,
pMsg
,
pMsg
->
BufferLength
);
/* FIXME: pfnAllocate? */
if
(
bind
->
server
)
{
/* it turns out that the original buffer data must still be available
* while the RPC server is marshalling a reply, so we should not deallocate
* it, we'll leave deallocating the original buffer to the RPC server */
pMsg
->
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pMsg
->
BufferLength
);
}
else
{
HeapFree
(
GetProcessHeap
(),
0
,
pMsg
->
Buffer
);
pMsg
->
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pMsg
->
BufferLength
);
}
pMsg
->
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pMsg
->
BufferLength
);
TRACE
(
"Buffer=%p
\n
"
,
pMsg
->
Buffer
);
/* FIXME: which errors to return? */
return
pMsg
->
Buffer
?
S_OK
:
E_OUTOFMEMORY
;
...
...
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