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
64828b75
Commit
64828b75
authored
Aug 09, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix the stack offset for the old format stubless code when an object's…
rpcrt4: Fix the stack offset for the old format stubless code when an object's method is being called.
parent
c350e000
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+16
-6
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
64828b75
...
...
@@ -834,15 +834,19 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
{
NDR_PARAM_OI_BASETYPE
*
pParam
=
(
NDR_PARAM_OI_BASETYPE
*
)
&
pFormat
[
current_offset
];
unsigned
char
*
pArg
=
ARG_FROM_OFFSET
(
stubMsg
,
current_stack_offset
);
/* note: current_stack_offset starts after the This pointer
* if present, so adjust this */
unsigned
short
current_stack_offset_adjusted
=
current_stack_offset
+
((
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_OBJECT
)
?
sizeof
(
void
*
)
:
0
);
unsigned
char
*
pArg
=
ARG_FROM_OFFSET
(
stubMsg
,
current_stack_offset_adjusted
);
/* no more parameters; exit loop */
if
(
current_stack_offset
>
stack_size
)
if
(
current_stack_offset
_adjusted
>=
stack_size
)
break
;
TRACE
(
"param[%d]: old format
\n
"
,
i
);
TRACE
(
"
\t
param_direction: %x
\n
"
,
pParam
->
param_direction
);
TRACE
(
"
\t
stack_offset: 0x%x
\n
"
,
current_stack_offset
);
TRACE
(
"
\t
stack_offset: 0x%x
\n
"
,
current_stack_offset
_adjusted
);
TRACE
(
"
\t
memory addr (before): %p
\n
"
,
pArg
);
if
(
pParam
->
param_direction
==
RPC_FC_IN_PARAM_BASETYPE
||
...
...
@@ -1420,13 +1424,19 @@ long WINAPI NdrStubCall2(
{
NDR_PARAM_OI_BASETYPE
*
pParam
=
(
NDR_PARAM_OI_BASETYPE
*
)
&
pFormat
[
current_offset
];
unsigned
char
*
pArg
=
(
unsigned
char
*
)(
args
+
current_stack_offset
);
/* note: current_stack_offset starts after the This pointer
* if present, so adjust this */
unsigned
short
current_stack_offset_adjusted
=
current_stack_offset
+
((
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_OBJECT
)
?
sizeof
(
void
*
)
:
0
);
unsigned
char
*
pArg
=
(
unsigned
char
*
)(
args
+
current_stack_offset_adjusted
);
/* no more parameters; exit loop */
if
(
current_stack_offset
>
stack_size
)
if
(
current_stack_offset
_adjusted
>=
stack_size
)
break
;
TRACE
(
"param[%d]: old format
\n\t
param_direction: 0x%x
\n
"
,
i
,
pParam
->
param_direction
);
TRACE
(
"param[%d]: old format
\n
"
,
i
);
TRACE
(
"
\t
param_direction: 0x%x
\n
"
,
pParam
->
param_direction
);
TRACE
(
"
\t
stack_offset: %x
\n
"
,
current_stack_offset_adjusted
);
if
(
pParam
->
param_direction
==
RPC_FC_IN_PARAM_BASETYPE
||
pParam
->
param_direction
==
RPC_FC_RETURN_PARAM_BASETYPE
)
...
...
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