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
5d873adf
Commit
5d873adf
authored
Jul 19, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Marshal return value from IRemUnknown_RemQueryInterface.
parent
d8780c75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
oleproxy.c
dlls/ole32/oleproxy.c
+12
-3
No files found.
dlls/ole32/oleproxy.c
View file @
5d873adf
...
...
@@ -551,12 +551,15 @@ static HRESULT WINAPI RemUnkStub_Invoke(LPRPCSTUBBUFFER iface,
hr
=
IRemUnknown_RemQueryInterface
(
This
->
iface
,
&
ipid
,
cRefs
,
cIids
,
iids
,
&
pQIResults
);
/* out */
pMsg
->
cbBuffer
=
cIids
*
sizeof
(
REMQIRESULT
);
pMsg
->
cbBuffer
=
cIids
*
sizeof
(
REMQIRESULT
)
+
sizeof
(
HRESULT
)
;
I_RpcGetBuffer
((
RPC_MESSAGE
*
)
pMsg
);
if
(
hr
)
return
hr
;
buf
=
pMsg
->
Buffer
;
*
(
HRESULT
*
)
buf
=
hr
;
buf
+=
sizeof
(
HRESULT
);
if
(
hr
)
return
hr
;
/* FIXME: pQIResults is a unique pointer so pQIResults can be NULL! */
memcpy
(
buf
,
pQIResults
,
cIids
*
sizeof
(
REMQIRESULT
));
...
...
@@ -750,8 +753,14 @@ static HRESULT WINAPI RemUnkProxy_RemQueryInterface(LPREMUNKNOWN iface,
hr
=
IRpcChannelBuffer_SendReceive
(
This
->
chan
,
&
msg
,
&
status
);
buf
=
msg
.
Buffer
;
if
(
SUCCEEDED
(
hr
))
{
hr
=
*
(
HRESULT
*
)
buf
;
buf
+=
sizeof
(
HRESULT
);
}
if
(
SUCCEEDED
(
hr
))
{
buf
=
msg
.
Buffer
;
*
ppQIResults
=
CoTaskMemAlloc
(
cIids
*
sizeof
(
REMQIRESULT
));
memcpy
(
*
ppQIResults
,
buf
,
cIids
*
sizeof
(
REMQIRESULT
));
}
...
...
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