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
6e7d06ad
Commit
6e7d06ad
authored
May 19, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Handle pointers to context handles in the stubless code.
Implement check for NULL context handles if requested.
parent
9c885c91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+16
-1
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
6e7d06ad
...
@@ -470,8 +470,23 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
...
@@ -470,8 +470,23 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
case
RPC_FC_BIND_CONTEXT
:
/* explicit context */
case
RPC_FC_BIND_CONTEXT
:
/* explicit context */
{
{
NDR_EHD_CONTEXT
*
pDesc
=
(
NDR_EHD_CONTEXT
*
)
&
pFormat
[
current_offset
];
NDR_EHD_CONTEXT
*
pDesc
=
(
NDR_EHD_CONTEXT
*
)
&
pFormat
[
current_offset
];
NDR_CCONTEXT
context_handle
;
TRACE
(
"Explicit bind context
\n
"
);
TRACE
(
"Explicit bind context
\n
"
);
hBinding
=
NDRCContextBinding
(
*
(
NDR_CCONTEXT
*
)
ARG_FROM_OFFSET
(
args
,
pDesc
->
offset
));
if
(
pDesc
->
flags
&
HANDLE_PARAM_IS_VIA_PTR
)
{
TRACE
(
"
\t
HANDLE_PARAM_IS_VIA_PTR
\n
"
);
context_handle
=
**
(
NDR_CCONTEXT
**
)
ARG_FROM_OFFSET
(
args
,
pDesc
->
offset
);
}
else
context_handle
=
*
(
NDR_CCONTEXT
*
)
ARG_FROM_OFFSET
(
args
,
pDesc
->
offset
);
if
((
pDesc
->
flags
&
NDR_CONTEXT_HANDLE_CANNOT_BE_NULL
)
&&
!
context_handle
)
{
ERR
(
"null context handle isn't allowed
\n
"
);
RpcRaiseException
(
RPC_X_SS_IN_NULL_CONTEXT
);
return
0
;
}
hBinding
=
NDRCContextBinding
(
context_handle
);
/* FIXME: should we store this structure in stubMsg.pContext? */
/* FIXME: should we store this structure in stubMsg.pContext? */
current_offset
+=
sizeof
(
NDR_EHD_CONTEXT
);
current_offset
+=
sizeof
(
NDR_EHD_CONTEXT
);
break
;
break
;
...
...
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