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
5ef4748c
Commit
5ef4748c
authored
May 11, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
May 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use I_RpcGetBuffer instead of HeapReAlloc for getting the Buffer
memory.
parent
2c6c67f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tmarshal.c
dlls/oleaut32/tmarshal.c
+4
-3
No files found.
dlls/oleaut32/tmarshal.c
View file @
5ef4748c
...
...
@@ -1979,7 +1979,8 @@ TMStubImpl_Invoke(
memset
(
&
buf
,
0
,
sizeof
(
buf
));
buf
.
size
=
xmsg
->
cbBuffer
;
buf
.
base
=
xmsg
->
Buffer
;
buf
.
base
=
HeapAlloc
(
GetProcessHeap
(),
0
,
xmsg
->
cbBuffer
);
memcpy
(
buf
.
base
,
xmsg
->
Buffer
,
xmsg
->
cbBuffer
);
buf
.
curoff
=
0
;
buf
.
iid
=
IID_IUnknown
;
...
...
@@ -2173,9 +2174,9 @@ afterserialize:
if
(
hres
!=
S_OK
)
return
hres
;
/* might need to use IRpcChannelBuffer_GetBuffer ? */
xmsg
->
cbBuffer
=
buf
.
curoff
;
xmsg
->
Buffer
=
buf
.
base
;
I_RpcGetBuffer
((
RPC_MESSAGE
*
)
xmsg
);
memcpy
(
xmsg
->
Buffer
,
buf
.
base
,
buf
.
curoff
);
HeapFree
(
GetProcessHeap
(),
0
,
args
);
return
S_OK
;
}
...
...
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