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
e1d10572
Commit
e1d10572
authored
Mar 09, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Use a helper to skip conformance.
parent
66c05a45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
30 deletions
+10
-30
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+10
-30
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
e1d10572
...
...
@@ -440,6 +440,11 @@ static inline BOOL IsConformanceOrVariancePresent(PFORMAT_STRING pFormat)
return
(
*
(
const
ULONG
*
)
pFormat
!=
-
1
);
}
static
inline
PFORMAT_STRING
SkipConformance
(
const
PMIDL_STUB_MESSAGE
pStubMsg
,
const
PFORMAT_STRING
pFormat
)
{
return
pStubMsg
->
fHasNewCorrDesc
?
pFormat
+
6
:
pFormat
+
4
;
}
static
PFORMAT_STRING
ReadConformance
(
MIDL_STUB_MESSAGE
*
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
align_pointer
(
&
pStubMsg
->
Buffer
,
4
);
...
...
@@ -448,10 +453,7 @@ static PFORMAT_STRING ReadConformance(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_STRIN
pStubMsg
->
MaxCount
=
NDR_LOCAL_UINT32_READ
(
pStubMsg
->
Buffer
);
pStubMsg
->
Buffer
+=
4
;
TRACE
(
"unmarshalled conformance is %ld
\n
"
,
pStubMsg
->
MaxCount
);
if
(
pStubMsg
->
fHasNewCorrDesc
)
return
pFormat
+
6
;
else
return
pFormat
+
4
;
return
SkipConformance
(
pStubMsg
,
pFormat
);
}
static
inline
PFORMAT_STRING
ReadVariance
(
MIDL_STUB_MESSAGE
*
pStubMsg
,
PFORMAT_STRING
pFormat
,
ULONG
MaxValue
)
...
...
@@ -483,10 +485,7 @@ static inline PFORMAT_STRING ReadVariance(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_S
}
done:
if
(
pStubMsg
->
fHasNewCorrDesc
)
return
pFormat
+
6
;
else
return
pFormat
+
4
;
return
SkipConformance
(
pStubMsg
,
pFormat
);
}
/* writes the conformance value to the buffer */
...
...
@@ -664,20 +663,8 @@ done_conf_grab:
finish_conf:
TRACE
(
"resulting conformance is %ld
\n
"
,
*
pCount
);
if
(
pStubMsg
->
fHasNewCorrDesc
)
return
pFormat
+
6
;
else
return
pFormat
+
4
;
}
static
inline
PFORMAT_STRING
SkipConformance
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
if
(
pStubMsg
->
fHasNewCorrDesc
)
pFormat
+=
6
;
else
pFormat
+=
4
;
return
pFormat
;
return
SkipConformance
(
pStubMsg
,
pFormat
);
}
static
inline
PFORMAT_STRING
SkipVariance
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
)
...
...
@@ -2785,11 +2772,7 @@ static ULONG EmbeddedComplexSize(MIDL_STUB_MESSAGE *pStubMsg,
}
case
RPC_FC_NON_ENCAPSULATED_UNION
:
pFormat
+=
2
;
if
(
pStubMsg
->
fHasNewCorrDesc
)
pFormat
+=
6
;
else
pFormat
+=
4
;
pFormat
=
SkipConformance
(
pStubMsg
,
pFormat
);
pFormat
+=
*
(
const
SHORT
*
)
pFormat
;
return
*
(
const
SHORT
*
)
pFormat
;
case
RPC_FC_IP
:
...
...
@@ -6186,10 +6169,7 @@ static LONG unmarshall_discriminant(PMIDL_STUB_MESSAGE pStubMsg,
}
(
*
ppFormat
)
++
;
if
(
pStubMsg
->
fHasNewCorrDesc
)
*
ppFormat
+=
6
;
else
*
ppFormat
+=
4
;
*
ppFormat
=
SkipConformance
(
pStubMsg
,
*
ppFormat
);
return
discriminant
;
}
...
...
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