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
fa847909
Commit
fa847909
authored
Jun 14, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Preserve the previous MaxCount value when computing variance through a callback.
parent
86d381a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+5
-1
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
fa847909
...
...
@@ -590,6 +590,8 @@ PFORMAT_STRING ComputeConformanceOrVariance(
case
RPC_FC_CALLBACK
:
{
unsigned
char
*
old_stack_top
=
pStubMsg
->
StackTop
;
ULONG_PTR
max_count
,
old_max_count
=
pStubMsg
->
MaxCount
;
pStubMsg
->
StackTop
=
ptr
;
/* ofs is index into StubDesc->apfnExprEval */
...
...
@@ -599,7 +601,9 @@ PFORMAT_STRING ComputeConformanceOrVariance(
pStubMsg
->
StackTop
=
old_stack_top
;
/* the callback function always stores the computed value in MaxCount */
*
pCount
=
pStubMsg
->
MaxCount
;
max_count
=
pStubMsg
->
MaxCount
;
pStubMsg
->
MaxCount
=
old_max_count
;
*
pCount
=
max_count
;
goto
finish_conf
;
}
default:
...
...
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