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
d29108c3
Commit
d29108c3
authored
Aug 09, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Set retval_ptr and allocate memory for out pointers for the old format stubless intepreter.
parent
3db5f872
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+14
-0
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
d29108c3
...
...
@@ -1461,6 +1461,8 @@ long WINAPI NdrStubCall2(
case
STUBLESS_UNMARSHAL
:
if
(
pParam
->
param_direction
==
RPC_FC_IN_PARAM_BASETYPE
)
call_unmarshaller
(
&
stubMsg
,
&
pArg
,
pTypeFormat
,
0
);
else
if
(
pParam
->
param_direction
==
RPC_FC_RETURN_PARAM_BASETYPE
)
retval_ptr
=
(
LONG_PTR
*
)
pArg
;
break
;
case
STUBLESS_CALCSIZE
:
if
(
pParam
->
param_direction
==
RPC_FC_RETURN_PARAM_BASETYPE
)
...
...
@@ -1495,6 +1497,18 @@ long WINAPI NdrStubCall2(
if
(
pParam
->
param_direction
==
RPC_FC_IN_OUT_PARAM
||
pParam
->
param_direction
==
RPC_FC_IN_PARAM
)
call_unmarshaller
(
&
stubMsg
,
(
unsigned
char
**
)
pArg
,
pTypeFormat
,
0
);
else
if
(
pParam
->
param_direction
==
RPC_FC_RETURN_PARAM
)
retval_ptr
=
(
LONG_PTR
*
)
pArg
;
else
if
(
pParam
->
param_direction
==
RPC_FC_OUT_PARAM
)
{
DWORD
size
=
calc_arg_size
(
&
stubMsg
,
pTypeFormat
);
if
(
size
)
{
*
(
void
**
)
pArg
=
NdrAllocate
(
&
stubMsg
,
size
);
memset
(
*
(
void
**
)
pArg
,
0
,
size
);
}
}
break
;
case
STUBLESS_CALCSIZE
:
if
(
pParam
->
param_direction
==
RPC_FC_OUT_PARAM
||
...
...
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