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
ecda8fd5
Commit
ecda8fd5
authored
Mar 06, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Added inline helper to test for Oicf stub descriptions.
parent
3730c99c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+8
-7
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
ecda8fd5
...
...
@@ -50,6 +50,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(rpc);
#define NDR_TABLE_MASK 127
static
inline
BOOL
is_oicf_stubdesc
(
const
PMIDL_STUB_DESC
pStubDesc
)
{
return
pStubDesc
->
Version
>=
0x20000
;
}
static
inline
void
call_buffer_sizer
(
PMIDL_STUB_MESSAGE
pStubMsg
,
unsigned
char
*
pMemory
,
const
NDR_PARAM_OIF
*
param
)
{
...
...
@@ -670,7 +675,7 @@ LONG_PTR CDECL ndr_client_call( PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
if
(
!
pFormat
)
goto
done
;
}
if
(
pStubDesc
->
Version
>=
0x20000
)
/* -Oicf format */
if
(
is_oicf_stubdesc
(
pStubDesc
)
)
/* -Oicf format */
{
const
NDR_PROC_PARTIAL_OIF_HEADER
*
pOIFHeader
=
(
const
NDR_PROC_PARTIAL_OIF_HEADER
*
)
pFormat
;
...
...
@@ -1311,7 +1316,7 @@ LONG WINAPI NdrStubCall2(
if
(
pThis
)
*
(
void
**
)
args
=
((
CStdStubBuffer
*
)
pThis
)
->
pvServerObject
;
if
(
pStubDesc
->
Version
>=
0x20000
)
/* -Oicf format */
if
(
is_oicf_stubdesc
(
pStubDesc
))
{
const
NDR_PROC_PARTIAL_OIF_HEADER
*
pOIFHeader
=
(
const
NDR_PROC_PARTIAL_OIF_HEADER
*
)
pFormat
;
...
...
@@ -1502,8 +1507,6 @@ LONG_PTR CDECL ndr_async_client_call( PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING
INTERPRETER_OPT_FLAGS2
ext_flags
=
{
0
};
/* header for procedure string */
const
NDR_PROC_HEADER
*
pProcHeader
=
(
const
NDR_PROC_HEADER
*
)
&
pFormat
[
0
];
/* -Oif or -Oicf generated format */
BOOL
bV2Format
=
FALSE
;
RPC_STATUS
status
;
TRACE
(
"pStubDesc %p, pFormat %p, ...
\n
"
,
pStubDesc
,
pFormat
);
...
...
@@ -1565,9 +1568,7 @@ LONG_PTR CDECL ndr_async_client_call( PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING
pFormat
=
client_get_handle
(
pStubMsg
,
pProcHeader
,
async_call_data
->
pHandleFormat
,
&
async_call_data
->
hBinding
);
if
(
!
pFormat
)
goto
done
;
bV2Format
=
(
pStubDesc
->
Version
>=
0x20000
);
if
(
bV2Format
)
if
(
is_oicf_stubdesc
(
pStubDesc
))
{
const
NDR_PROC_PARTIAL_OIF_HEADER
*
pOIFHeader
=
(
const
NDR_PROC_PARTIAL_OIF_HEADER
*
)
pFormat
;
...
...
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