Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
678ad628
Commit
678ad628
authored
Jun 02, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jun 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix the pointer count used when handling embedded pointers in varying arrays.
parent
423e7e30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+5
-5
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
678ad628
...
...
@@ -1073,7 +1073,7 @@ static unsigned char * EmbeddedPointerMarshall(PMIDL_STUB_MESSAGE pStubMsg,
pFormat
+=
10
;
break
;
case
RPC_FC_VARIABLE_REPEAT
:
rep
=
pStubMsg
->
MaxCount
;
rep
=
(
pFormat
[
1
]
==
RPC_FC_VARIABLE_OFFSET
)
?
pStubMsg
->
ActualCount
:
pStubMsg
->
MaxCount
;
stride
=
*
(
const
WORD
*
)
&
pFormat
[
2
];
ofs
=
*
(
const
WORD
*
)
&
pFormat
[
4
];
count
=
*
(
const
WORD
*
)
&
pFormat
[
6
];
...
...
@@ -1145,7 +1145,7 @@ static unsigned char * EmbeddedPointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
pFormat
+=
10
;
break
;
case
RPC_FC_VARIABLE_REPEAT
:
rep
=
pStubMsg
->
MaxCount
;
rep
=
(
pFormat
[
1
]
==
RPC_FC_VARIABLE_OFFSET
)
?
pStubMsg
->
ActualCount
:
pStubMsg
->
MaxCount
;
stride
=
*
(
const
WORD
*
)
&
pFormat
[
2
];
ofs
=
*
(
const
WORD
*
)
&
pFormat
[
4
];
count
=
*
(
const
WORD
*
)
&
pFormat
[
6
];
...
...
@@ -1210,7 +1210,7 @@ static void EmbeddedPointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
pFormat
+=
10
;
break
;
case
RPC_FC_VARIABLE_REPEAT
:
rep
=
pStubMsg
->
MaxCount
;
rep
=
(
pFormat
[
1
]
==
RPC_FC_VARIABLE_OFFSET
)
?
pStubMsg
->
ActualCount
:
pStubMsg
->
MaxCount
;
stride
=
*
(
const
WORD
*
)
&
pFormat
[
2
];
ofs
=
*
(
const
WORD
*
)
&
pFormat
[
4
];
count
=
*
(
const
WORD
*
)
&
pFormat
[
6
];
...
...
@@ -1273,7 +1273,7 @@ static unsigned long EmbeddedPointerMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
pFormat
+=
10
;
break
;
case
RPC_FC_VARIABLE_REPEAT
:
rep
=
pStubMsg
->
MaxCount
;
rep
=
(
pFormat
[
1
]
==
RPC_FC_VARIABLE_OFFSET
)
?
pStubMsg
->
ActualCount
:
pStubMsg
->
MaxCount
;
stride
=
*
(
const
WORD
*
)
&
pFormat
[
2
];
ofs
=
*
(
const
WORD
*
)
&
pFormat
[
4
];
count
=
*
(
const
WORD
*
)
&
pFormat
[
6
];
...
...
@@ -1333,7 +1333,7 @@ static void EmbeddedPointerFree(PMIDL_STUB_MESSAGE pStubMsg,
pFormat
+=
10
;
break
;
case
RPC_FC_VARIABLE_REPEAT
:
rep
=
pStubMsg
->
MaxCount
;
rep
=
(
pFormat
[
1
]
==
RPC_FC_VARIABLE_OFFSET
)
?
pStubMsg
->
ActualCount
:
pStubMsg
->
MaxCount
;
stride
=
*
(
const
WORD
*
)
&
pFormat
[
2
];
ofs
=
*
(
const
WORD
*
)
&
pFormat
[
4
];
count
=
*
(
const
WORD
*
)
&
pFormat
[
6
];
...
...
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