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
0e7f6e0e
Commit
0e7f6e0e
authored
Aug 25, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Allow syscalls to use the cdecl convention.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a12e308e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
import.c
tools/winebuild/import.c
+1
-1
parser.c
tools/winebuild/parser.c
+2
-2
No files found.
tools/winebuild/import.c
View file @
0e7f6e0e
...
...
@@ -1700,7 +1700,7 @@ void output_syscalls( DLLSPEC *spec )
output
(
"
\t
movl $%s,%%edx
\n
"
,
asm_name
(
"__wine_syscall"
)
);
}
output
(
"
\t
call *%%edx
\n
"
);
output
(
"
\t
ret $%u
\n
"
,
get_args_size
(
odp
)
);
output
(
"
\t
ret $%u
\n
"
,
odp
->
type
==
TYPE_STDCALL
?
get_args_size
(
odp
)
:
0
);
break
;
case
CPU_x86_64
:
/* Chromium depends on syscall thunks having the same form as on
...
...
tools/winebuild/parser.c
View file @
0e7f6e0e
...
...
@@ -323,9 +323,9 @@ static int parse_spec_arguments( ORDDEF *odp, DLLSPEC *spec, int optional )
}
if
(
odp
->
flags
&
FLAG_SYSCALL
)
{
if
(
odp
->
type
!=
TYPE_STDCALL
)
if
(
odp
->
type
!=
TYPE_STDCALL
&&
odp
->
type
!=
TYPE_CDECL
)
{
error
(
"A syscall function must use
the stdcal
l convention
\n
"
);
error
(
"A syscall function must use
either the stdcall or the cdec
l convention
\n
"
);
return
0
;
}
}
...
...
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