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
9de9cbb3
Commit
9de9cbb3
authored
Aug 26, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Retrieve the stack argument pointer in a more portable way in NdrClientCall.
parent
e095467b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+8
-11
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
9de9cbb3
...
@@ -580,6 +580,7 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
...
@@ -580,6 +580,7 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
PFORMAT_STRING
pHandleFormat
;
PFORMAT_STRING
pHandleFormat
;
/* correlation cache */
/* correlation cache */
ULONG_PTR
NdrCorrCache
[
256
];
ULONG_PTR
NdrCorrCache
[
256
];
__ms_va_list
args
;
TRACE
(
"pStubDesc %p, pFormat %p, ...
\n
"
,
pStubDesc
,
pFormat
);
TRACE
(
"pStubDesc %p, pFormat %p, ...
\n
"
,
pStubDesc
,
pFormat
);
...
@@ -618,11 +619,9 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
...
@@ -618,11 +619,9 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
TRACE
(
"MIDL stub version = 0x%x
\n
"
,
pStubDesc
->
MIDLVersion
);
TRACE
(
"MIDL stub version = 0x%x
\n
"
,
pStubDesc
->
MIDLVersion
);
/* needed for conformance of top-level objects */
/* needed for conformance of top-level objects */
#ifdef __i386__
__ms_va_start
(
args
,
pFormat
);
stubMsg
.
StackTop
=
*
(
unsigned
char
**
)(
&
pFormat
+
1
);
stubMsg
.
StackTop
=
va_arg
(
args
,
unsigned
char
*
);
#else
__ms_va_end
(
args
);
# warning Stack not retrieved for your CPU architecture
#endif
pHandleFormat
=
pFormat
;
pHandleFormat
=
pFormat
;
...
@@ -1654,6 +1653,7 @@ LONG_PTR WINAPIV NdrAsyncClientCall(PMIDL_STUB_DESC pStubDesc,
...
@@ -1654,6 +1653,7 @@ LONG_PTR WINAPIV NdrAsyncClientCall(PMIDL_STUB_DESC pStubDesc,
const
NDR_PROC_HEADER
*
pProcHeader
=
(
const
NDR_PROC_HEADER
*
)
&
pFormat
[
0
];
const
NDR_PROC_HEADER
*
pProcHeader
=
(
const
NDR_PROC_HEADER
*
)
&
pFormat
[
0
];
/* -Oif or -Oicf generated format */
/* -Oif or -Oicf generated format */
BOOL
bV2Format
=
FALSE
;
BOOL
bV2Format
=
FALSE
;
__ms_va_list
args
;
TRACE
(
"pStubDesc %p, pFormat %p, ...
\n
"
,
pStubDesc
,
pFormat
);
TRACE
(
"pStubDesc %p, pFormat %p, ...
\n
"
,
pStubDesc
,
pFormat
);
...
@@ -1705,13 +1705,10 @@ LONG_PTR WINAPIV NdrAsyncClientCall(PMIDL_STUB_DESC pStubDesc,
...
@@ -1705,13 +1705,10 @@ LONG_PTR WINAPIV NdrAsyncClientCall(PMIDL_STUB_DESC pStubDesc,
TRACE
(
"MIDL stub version = 0x%x
\n
"
,
pStubDesc
->
MIDLVersion
);
TRACE
(
"MIDL stub version = 0x%x
\n
"
,
pStubDesc
->
MIDLVersion
);
/* needed for conformance of top-level objects */
/* needed for conformance of top-level objects */
#ifdef __i386__
pStubMsg
->
StackTop
=
I_RpcAllocate
(
async_call_data
->
stack_size
);
pStubMsg
->
StackTop
=
I_RpcAllocate
(
async_call_data
->
stack_size
);
/* FIXME: this may read one more DWORD than is necessary, but it shouldn't hurt */
__ms_va_start
(
args
,
pFormat
);
memcpy
(
pStubMsg
->
StackTop
,
*
(
unsigned
char
**
)(
&
pFormat
+
1
),
async_call_data
->
stack_size
);
memcpy
(
pStubMsg
->
StackTop
,
va_arg
(
args
,
unsigned
char
*
),
async_call_data
->
stack_size
);
#else
__ms_va_end
(
args
);
# warning Stack not retrieved for your CPU architecture
#endif
pAsync
=
*
(
RPC_ASYNC_STATE
**
)
pStubMsg
->
StackTop
;
pAsync
=
*
(
RPC_ASYNC_STATE
**
)
pStubMsg
->
StackTop
;
pAsync
->
StubInfo
=
async_call_data
;
pAsync
->
StubInfo
=
async_call_data
;
...
...
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