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
26bbbb7b
Commit
26bbbb7b
authored
Mar 01, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Use stdcall for fastcall wrappers.
This allows catching mismatched argument lists. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5e1b3b2f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
hal.c
dlls/hal/hal.c
+2
-2
rtl.c
dlls/ntdll/rtl.c
+1
-1
ntoskrnl_private.h
dlls/ntoskrnl.exe/ntoskrnl_private.h
+2
-2
spec32.c
tools/winebuild/spec32.c
+1
-1
No files found.
dlls/hal/hal.c
View file @
26bbbb7b
...
...
@@ -36,13 +36,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
#ifdef __i386__
#define DEFINE_FASTCALL1_WRAPPER(func) \
__ASM_
GLOBAL_FUNC( __fastcall_ ## func
, \
__ASM_
STDCALL_FUNC( __fastcall_ ## func, 4
, \
"popl %eax\n\t" \
"pushl %ecx\n\t" \
"pushl %eax\n\t" \
"jmp " __ASM_NAME(#func) __ASM_STDCALL(4) )
#define DEFINE_FASTCALL_WRAPPER(func,args) \
__ASM_
GLOBAL_FUNC( __fastcall_ ## func
, \
__ASM_
STDCALL_FUNC( __fastcall_ ## func, args
, \
"popl %eax\n\t" \
"pushl %edx\n\t" \
"pushl %ecx\n\t" \
...
...
dlls/ntdll/rtl.c
View file @
26bbbb7b
...
...
@@ -52,7 +52,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
#ifdef __i386__
#define DEFINE_FASTCALL_WRAPPER(func,args) \
__ASM_
GLOBAL_FUNC( __fastcall_ ## func
, \
__ASM_
STDCALL_FUNC( __fastcall_ ## func, args
, \
"popl %eax\n\t" \
"pushl %edx\n\t" \
"pushl %ecx\n\t" \
...
...
dlls/ntoskrnl.exe/ntoskrnl_private.h
View file @
26bbbb7b
...
...
@@ -30,13 +30,13 @@ struct _OBJECT_TYPE {
#ifdef __i386__
#define DEFINE_FASTCALL1_WRAPPER(func) \
__ASM_
GLOBAL_FUNC( __fastcall_ ## func
, \
__ASM_
STDCALL_FUNC( __fastcall_ ## func, 4
, \
"popl %eax\n\t" \
"pushl %ecx\n\t" \
"pushl %eax\n\t" \
"jmp " __ASM_NAME(#func) __ASM_STDCALL(4) )
#define DEFINE_FASTCALL_WRAPPER(func,args) \
__ASM_
GLOBAL_FUNC( __fastcall_ ## func
, \
__ASM_
STDCALL_FUNC( __fastcall_ ## func, args
, \
"popl %eax\n\t" \
"pushl %edx\n\t" \
"pushl %ecx\n\t" \
...
...
tools/winebuild/spec32.c
View file @
26bbbb7b
...
...
@@ -968,7 +968,7 @@ void output_def_file( DLLSPEC *spec, int include_private )
else
if
(
strcmp
(
name
,
odp
->
link_name
))
/* try to reduce output */
{
output
(
"=%s"
,
odp
->
link_name
);
if
(
!
kill_at
&&
target_cpu
==
CPU_x86
&&
!
(
odp
->
flags
&
(
FLAG_THISCALL
|
FLAG_FASTCALL
)
))
if
(
!
kill_at
&&
target_cpu
==
CPU_x86
&&
!
(
odp
->
flags
&
FLAG_THISCALL
))
output
(
"@%d"
,
at_param
);
}
break
;
...
...
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