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
e095467b
Commit
e095467b
authored
Aug 26, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix cfi annotations for the stubless proxy entry point.
parent
964500a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
cproxy.c
dlls/rpcrt4/cproxy.c
+5
-2
No files found.
dlls/rpcrt4/cproxy.c
View file @
e095467b
...
...
@@ -65,7 +65,7 @@ static const IRpcProxyBufferVtbl StdProxy_Vtbl;
#include "pshpack1.h"
struct
thunk
{
BYTE
push
;
BYTE
mov_eax
;
DWORD
index
;
BYTE
jmp
;
LONG
handler
;
...
...
@@ -75,9 +75,12 @@ struct thunk {
extern
void
call_stubless_func
(
void
);
__ASM_GLOBAL_FUNC
(
call_stubless_func
,
"pushl %eax
\n\t
"
/* method index */
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"pushl %esp
\n\t
"
/* pointer to index */
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"call "
__ASM_NAME
(
"ObjectStubless"
)
__ASM_STDCALL
(
4
)
"
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset -4
\n\t
"
)
"popl %edx
\n\t
"
/* args size */
__ASM_CFI
(
".cfi_adjust_cfa_offset -4
\n\t
"
)
"movl (%esp),%ecx
\n\t
"
/* return address */
...
...
@@ -115,7 +118,7 @@ static const struct thunk *allocate_block( unsigned int num )
for
(
i
=
0
;
i
<
BLOCK_SIZE
;
i
++
)
{
block
[
i
].
push
=
0x68
;
/* pushl
*/
block
[
i
].
mov_eax
=
0xb8
;
/* movl $n,%eax
*/
block
[
i
].
index
=
BLOCK_SIZE
*
num
+
i
+
3
;
block
[
i
].
jmp
=
0xe9
;
/* jmp */
block
[
i
].
handler
=
(
char
*
)
call_stubless_func
-
(
char
*
)(
&
block
[
i
].
handler
+
1
);
...
...
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