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
c3a087eb
Commit
c3a087eb
authored
May 10, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Align conformances and variances correctly, according the the DCE/RPC spec.
parent
265045d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+6
-0
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
c3a087eb
...
...
@@ -308,6 +308,7 @@ static inline BOOL IsConformanceOrVariancePresent(PFORMAT_STRING pFormat)
PFORMAT_STRING
ReadConformance
(
MIDL_STUB_MESSAGE
*
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
ALIGN_POINTER
(
pStubMsg
->
Buffer
,
4
);
pStubMsg
->
MaxCount
=
NDR_LOCAL_UINT32_READ
(
pStubMsg
->
Buffer
);
pStubMsg
->
Buffer
+=
4
;
TRACE
(
"unmarshalled conformance is %ld
\n
"
,
pStubMsg
->
MaxCount
);
...
...
@@ -326,6 +327,7 @@ static inline PFORMAT_STRING ReadVariance(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_S
goto
done
;
}
ALIGN_POINTER
(
pStubMsg
->
Buffer
,
4
);
pStubMsg
->
Offset
=
NDR_LOCAL_UINT32_READ
(
pStubMsg
->
Buffer
);
pStubMsg
->
Buffer
+=
4
;
TRACE
(
"offset is %ld
\n
"
,
pStubMsg
->
Offset
);
...
...
@@ -343,6 +345,7 @@ done:
/* writes the conformance value to the buffer */
static
inline
void
WriteConformance
(
MIDL_STUB_MESSAGE
*
pStubMsg
)
{
ALIGN_POINTER
(
pStubMsg
->
Buffer
,
4
);
NDR_LOCAL_UINT32_WRITE
(
pStubMsg
->
Buffer
,
pStubMsg
->
MaxCount
);
pStubMsg
->
Buffer
+=
4
;
}
...
...
@@ -350,6 +353,7 @@ static inline void WriteConformance(MIDL_STUB_MESSAGE *pStubMsg)
/* writes the variance values to the buffer */
static
inline
void
WriteVariance
(
MIDL_STUB_MESSAGE
*
pStubMsg
)
{
ALIGN_POINTER
(
pStubMsg
->
Buffer
,
4
);
NDR_LOCAL_UINT32_WRITE
(
pStubMsg
->
Buffer
,
pStubMsg
->
Offset
);
pStubMsg
->
Buffer
+=
4
;
NDR_LOCAL_UINT32_WRITE
(
pStubMsg
->
Buffer
,
pStubMsg
->
ActualCount
);
...
...
@@ -359,12 +363,14 @@ static inline void WriteVariance(MIDL_STUB_MESSAGE *pStubMsg)
/* requests buffer space for the conformance value */
static
inline
void
SizeConformance
(
MIDL_STUB_MESSAGE
*
pStubMsg
)
{
ALIGN_LENGTH
(
pStubMsg
->
BufferLength
,
4
);
pStubMsg
->
BufferLength
+=
4
;
}
/* requests buffer space for the variance values */
static
inline
void
SizeVariance
(
MIDL_STUB_MESSAGE
*
pStubMsg
)
{
ALIGN_LENGTH
(
pStubMsg
->
BufferLength
,
4
);
pStubMsg
->
BufferLength
+=
8
;
}
...
...
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