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
c2545cd4
Commit
c2545cd4
authored
Jul 08, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Fix register constraints on thiscall wrappers.
parent
8b2bfbb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
cpp.c
dlls/msvcrt/tests/cpp.c
+10
-10
No files found.
dlls/msvcrt/tests/cpp.c
View file @
c2545cd4
...
...
@@ -157,20 +157,20 @@ static inline void* do_call_func2(void *func, void *_this, const void* arg)
#else
static
void
*
do_call_func1
(
void
*
func
,
void
*
_this
)
{
void
*
ret
;
__asm__
__volatile__
(
"call *%
1
"
:
"=a"
(
ret
)
:
"g"
(
func
),
"
c
"
(
_this
)
:
"memory"
);
void
*
ret
,
*
dummy
;
__asm__
__volatile__
(
"call *%
2
"
:
"=a"
(
ret
)
,
"=c"
(
dummy
)
:
"g"
(
func
),
"
1
"
(
_this
)
:
"
edx"
,
"
memory"
);
return
ret
;
}
static
void
*
do_call_func2
(
void
*
func
,
void
*
_this
,
const
void
*
arg
)
{
void
*
ret
;
__asm__
__volatile__
(
"pushl %
2
\n\t
call *%1
"
:
"=a"
(
ret
)
:
"r"
(
func
),
"
g"
(
arg
),
"c
"
(
_this
)
:
"memory"
);
void
*
ret
,
*
dummy
;
__asm__
__volatile__
(
"pushl %
3
\n\t
call *%2
"
:
"=a"
(
ret
)
,
"=c"
(
dummy
)
:
"r"
(
func
),
"
r"
(
arg
),
"1
"
(
_this
)
:
"
edx"
,
"
memory"
);
return
ret
;
}
#endif
...
...
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