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
972ce2f6
Commit
972ce2f6
authored
Jun 02, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jun 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: CContext can be NULL in NDRCContextMarshall, in which case we should marshall all-zeros.
parent
678ad628
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+14
-6
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
972ce2f6
...
...
@@ -4476,21 +4476,29 @@ void WINAPI NDRCContextMarshall(NDR_CCONTEXT CContext, void *pBuff)
TRACE
(
"%p %p
\n
"
,
CContext
,
pBuff
);
EnterCriticalSection
(
&
ndr_context_cs
);
che
=
get_context_entry
(
CContext
);
memcpy
(
pBuff
,
&
che
->
wire_data
,
sizeof
(
ndr_context_handle
));
LeaveCriticalSection
(
&
ndr_context_cs
);
if
(
CContext
)
{
EnterCriticalSection
(
&
ndr_context_cs
);
che
=
get_context_entry
(
CContext
);
memcpy
(
pBuff
,
&
che
->
wire_data
,
sizeof
(
ndr_context_handle
));
LeaveCriticalSection
(
&
ndr_context_cs
);
}
else
{
ndr_context_handle
*
wire_data
=
(
ndr_context_handle
*
)
pBuff
;
wire_data
->
attributes
=
0
;
wire_data
->
uuid
=
GUID_NULL
;
}
}
static
UINT
ndr_update_context_handle
(
NDR_CCONTEXT
*
CContext
,
RPC_BINDING_HANDLE
hBinding
,
ndr_context_handle
*
chi
)
{
static
const
GUID
zeroguid
=
{
0
,
0
,
0
,{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}};
struct
context_handle_entry
*
che
=
NULL
;
/* a null UUID means we should free the context handle */
if
(
IsEqualGUID
(
&
chi
->
uuid
,
&
zeroguid
))
if
(
IsEqualGUID
(
&
chi
->
uuid
,
&
GUID_NULL
))
{
che
=
get_context_entry
(
*
CContext
);
if
(
!
che
)
...
...
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