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
61fdcfdd
Commit
61fdcfdd
authored
Oct 28, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Clarify local variables in PointerUnmarshall().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
be430b26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+8
-9
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
61fdcfdd
...
...
@@ -950,26 +950,25 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
* whether we have to initialise it so we can use the optimisation of
* setting the pointer to the buffer, if possible, or set fMustAlloc to
* TRUE. */
if
(
attr
&
FC_POINTER_DEREF
)
{
if
(
attr
&
FC_POINTER_DEREF
)
{
if
(
pSrcPointer
&&
(
attr
&
FC_ALLOCED_ON_STACK
))
*
pPointer
=
pSrcPointer
;
else
fMustAlloc
=
TRUE
;
}
else
{
*
current_ptr
=
NULL
;
}
else
*
pPointer
=
NULL
;
}
if
(
attr
&
FC_ALLOCATE_ALL_NODES
)
FIXME
(
"FC_ALLOCATE_ALL_NODES not implemented
\n
"
);
if
(
attr
&
FC_POINTER_DEREF
)
{
if
(
fMustAlloc
)
{
unsigned
char
*
base_ptr_val
=
NdrAllocate
(
pStubMsg
,
sizeof
(
void
*
));
*
pPointer
=
base_ptr_val
;
current_ptr
=
(
unsigned
char
**
)
base_ptr_val
;
}
else
current_ptr
=
*
(
unsigned
char
***
)
current_ptr
;
if
(
fMustAlloc
)
*
pPointer
=
NdrAllocateZero
(
pStubMsg
,
sizeof
(
void
*
));
current_ptr
=
*
(
unsigned
char
***
)
current_ptr
;
TRACE
(
"deref => %p
\n
"
,
current_ptr
);
if
(
!
fMustAlloc
&&
!*
current_ptr
)
fMustAlloc
=
TRUE
;
}
...
...
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