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
921367fc
Commit
921367fc
authored
Feb 27, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Only allow the stdcall calling convention for system calls.
parent
4a0f3fbc
Show 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 @
921367fc
...
...
@@ -1437,7 +1437,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
"
,
odp
->
type
==
TYPE_STDCALL
?
get_args_size
(
odp
)
:
0
);
output
(
"
\t
ret $%u
\n
"
,
get_args_size
(
odp
)
);
break
;
case
CPU_x86_64
:
/* Chromium depends on syscall thunks having the same form as on
...
...
tools/winebuild/parser.c
View file @
921367fc
...
...
@@ -315,9 +315,9 @@ static int parse_spec_arguments( ORDDEF *odp, DLLSPEC *spec, int optional )
}
if
(
odp
->
flags
&
FLAG_SYSCALL
)
{
if
(
odp
->
type
!=
TYPE_STDCALL
&&
odp
->
type
!=
TYPE_CDECL
)
if
(
odp
->
type
!=
TYPE_STDCALL
)
{
error
(
"A syscall function must use
either the stdcall or the cdec
l convention
\n
"
);
error
(
"A syscall function must use
the stdcal
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