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
a1dca20d
Commit
a1dca20d
authored
Jun 25, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Jun 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add support for ServerAllocSize parameters.
parent
73c31ed3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+9
-5
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
a1dca20d
...
...
@@ -1339,10 +1339,6 @@ LONG WINAPI NdrStubCall2(
TRACE
(
"
\t
stack_offset: 0x%x
\n
"
,
current_stack_offset
);
TRACE
(
"
\t
memory addr (before): %p -> %p
\n
"
,
pArg
,
*
(
unsigned
char
**
)
pArg
);
if
(
pParam
->
param_attributes
.
ServerAllocSize
)
FIXME
(
"ServerAllocSize of %d ignored for parameter %d
\n
"
,
pParam
->
param_attributes
.
ServerAllocSize
*
8
,
i
);
if
(
pParam
->
param_attributes
.
IsBasetype
)
{
const
unsigned
char
*
pTypeFormat
=
...
...
@@ -1360,9 +1356,12 @@ LONG WINAPI NdrStubCall2(
else
call_marshaller
(
&
stubMsg
,
pArg
,
pTypeFormat
);
}
/* FIXME: call call_freer here */
break
;
case
STUBLESS_UNMARSHAL
:
if
(
pParam
->
param_attributes
.
ServerAllocSize
)
*
(
void
**
)
pArg
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
pParam
->
param_attributes
.
ServerAllocSize
*
8
);
if
(
pParam
->
param_attributes
.
IsIn
)
{
if
(
pParam
->
param_attributes
.
IsSimpleRef
)
...
...
@@ -1417,6 +1416,10 @@ LONG WINAPI NdrStubCall2(
/* FIXME: call call_freer here for IN types */
break
;
case
STUBLESS_UNMARSHAL
:
if
(
pParam
->
param_attributes
.
ServerAllocSize
)
*
(
void
**
)
pArg
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
pParam
->
param_attributes
.
ServerAllocSize
*
8
);
if
(
pParam
->
param_attributes
.
IsIn
)
{
if
(
pParam
->
param_attributes
.
IsByValue
)
...
...
@@ -1425,6 +1428,7 @@ LONG WINAPI NdrStubCall2(
call_unmarshaller
(
&
stubMsg
,
(
unsigned
char
**
)
pArg
,
pTypeFormat
,
0
);
}
else
if
(
pParam
->
param_attributes
.
IsOut
&&
!
pParam
->
param_attributes
.
ServerAllocSize
&&
!
pParam
->
param_attributes
.
IsByValue
)
{
DWORD
size
=
calc_arg_size
(
&
stubMsg
,
pTypeFormat
);
...
...
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