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
c1a9dc8a
Commit
c1a9dc8a
authored
Apr 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Always skip the conformance format, even if conformance is not present in the buffer.
Add an identical SkipVariance function to make the code clearer.
parent
5728d6b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+8
-8
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
c1a9dc8a
...
...
@@ -644,14 +644,16 @@ finish_conf:
static
inline
PFORMAT_STRING
SkipConformance
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
if
(
IsConformanceOrVariancePresent
(
pFormat
))
{
if
(
pStubMsg
->
fHasNewCorrDesc
)
pFormat
+=
6
;
else
pFormat
+=
4
;
}
return
pFormat
;
return
pFormat
;
}
static
inline
PFORMAT_STRING
SkipVariance
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
return
SkipConformance
(
pStubMsg
,
pFormat
);
}
/* multiply two numbers together, raising an RPC_S_INVALID_BOUND exception if
...
...
@@ -1842,7 +1844,7 @@ static inline void array_buffer_size(
alignment
=
pFormat
[
1
]
+
1
;
pFormat
=
SkipConformance
(
pStubMsg
,
pFormat
+
4
);
pFormat
=
Skip
Conform
ance
(
pStubMsg
,
pFormat
);
pFormat
=
Skip
Vari
ance
(
pStubMsg
,
pFormat
);
SizeVariance
(
pStubMsg
);
...
...
@@ -1942,10 +1944,8 @@ static inline void array_write_variance_and_marshall(
esize
=
*
(
const
WORD
*
)(
pFormat
+
2
);
alignment
=
pFormat
[
1
]
+
1
;
/* conformance */
pFormat
=
SkipConformance
(
pStubMsg
,
pFormat
+
4
);
/* variance */
pFormat
=
SkipConformance
(
pStubMsg
,
pFormat
);
pFormat
=
SkipVariance
(
pStubMsg
,
pFormat
);
WriteVariance
(
pStubMsg
);
...
...
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