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
b6c48de6
Commit
b6c48de6
authored
Jan 25, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix context handle return value marshaling.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b51cee00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+2
-3
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
b6c48de6
...
...
@@ -1232,6 +1232,7 @@ static LONG_PTR *stub_do_args(MIDL_STUB_MESSAGE *pStubMsg,
{
NDR_SCONTEXT
ctxt
=
NdrContextHandleInitialize
(
pStubMsg
,
pTypeFormat
);
*
(
void
**
)
pArg
=
NDRSContextValue
(
ctxt
);
if
(
params
[
i
].
attr
.
IsReturn
)
retval_ptr
=
(
LONG_PTR
*
)
NDRSContextValue
(
ctxt
);
}
else
{
...
...
@@ -1243,6 +1244,7 @@ static LONG_PTR *stub_do_args(MIDL_STUB_MESSAGE *pStubMsg,
}
}
}
if
(
!
retval_ptr
&&
params
[
i
].
attr
.
IsReturn
)
retval_ptr
=
(
LONG_PTR
*
)
pArg
;
break
;
case
STUBLESS_UNMARSHAL
:
if
(
params
[
i
].
attr
.
ServerAllocSize
)
...
...
@@ -1260,9 +1262,6 @@ static LONG_PTR *stub_do_args(MIDL_STUB_MESSAGE *pStubMsg,
RpcRaiseException
(
RPC_S_INTERNAL_ERROR
);
}
TRACE
(
"
\t
memory addr (after): %p -> %p
\n
"
,
pArg
,
*
(
unsigned
char
**
)
pArg
);
/* make a note of the address of the return value parameter for later */
if
(
params
[
i
].
attr
.
IsReturn
)
retval_ptr
=
(
LONG_PTR
*
)
pArg
;
}
return
retval_ptr
;
}
...
...
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