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
deaec125
Commit
deaec125
authored
Jul 01, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use the full 32 bits of %esp when called from 16-bit code.
parent
b2848690
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
import.c
tools/winebuild/import.c
+18
-2
No files found.
tools/winebuild/import.c
View file @
deaec125
...
...
@@ -705,8 +705,7 @@ static void output_import_thunk( FILE *outfile, const char *name, const char *ta
}
else
{
if
(
!
strcmp
(
name
,
"__wine_call_from_32_regs"
)
||
!
strcmp
(
name
,
"__wine_call_from_16_regs"
))
if
(
!
strcmp
(
name
,
"__wine_call_from_32_regs"
))
{
/* special case: need to preserve all registers */
fprintf
(
outfile
,
"
\"\\
tpushl %%eax
\\
n
\"\n
"
);
...
...
@@ -720,6 +719,23 @@ static void output_import_thunk( FILE *outfile, const char *name, const char *ta
fprintf
(
outfile
,
"
\"\\
txchgl %%eax,(%%esp)
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"\\
tret
\\
n
\"\n
"
);
}
else
if
(
!
strcmp
(
name
,
"__wine_call_from_16_regs"
))
{
/* special case: need to preserve all registers */
fprintf
(
outfile
,
"
\"\\
tpushl %%eax
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"\\
tpushl %%ecx
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"\\
tcall .L__wine_spec_%s
\\
n
\"\n
"
,
name
);
fprintf
(
outfile
,
"
\"
.L__wine_spec_%s:
\\
n
\"\n
"
,
name
);
fprintf
(
outfile
,
"
\"\\
tpopl %%eax
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"\\
t.byte 0x2e
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"\\
tmovl %s+%d-.L__wine_spec_%s(%%eax),%%eax
\\
n
\"\n
"
,
asm_name
(
table
),
pos
,
name
);
fprintf
(
outfile
,
"
\"\\
tmovzwl %%sp, %%ecx
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"\\
t.byte 0x36
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"\\
txchgl %%eax,4(%%ecx)
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"\\
tpopl %%ecx
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"\\
tret
\\
n
\"\n
"
);
}
else
{
fprintf
(
outfile
,
"
\"\\
tcall .L__wine_spec_%s
\\
n
\"\n
"
,
name
);
...
...
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