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
1abf8090
Commit
1abf8090
authored
Sep 04, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Generate MS-style imports using the OriginalFirstThunk field.
parent
4eb350b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
import.c
tools/winebuild/import.c
+10
-2
No files found.
tools/winebuild/import.c
View file @
1abf8090
...
...
@@ -746,7 +746,8 @@ static void output_immediate_imports(void)
{
if
(
dll_imports
[
i
]
->
delay
)
continue
;
dll_name
=
make_c_identifier
(
dll_imports
[
i
]
->
spec
->
file_name
);
output
(
"
\t
.long 0
\n
"
);
/* OriginalFirstThunk */
output
(
"
\t
.long .L__wine_spec_import_data_names+%d-.L__wine_spec_rva_base
\n
"
,
/* OriginalFirstThunk */
j
*
get_ptr_size
()
);
output
(
"
\t
.long 0
\n
"
);
/* TimeDateStamp */
output
(
"
\t
.long 0
\n
"
);
/* ForwarderChain */
output
(
"
\t
.long .L__wine_spec_import_name_%s-.L__wine_spec_rva_base
\n
"
,
/* Name */
...
...
@@ -762,7 +763,7 @@ static void output_immediate_imports(void)
output
(
"
\t
.long 0
\n
"
);
/* FirstThunk */
output
(
"
\n\t
.align %d
\n
"
,
get_alignment
(
get_ptr_size
())
);
output
(
".L__wine_spec_import_data_
ptr
s:
\n
"
);
output
(
".L__wine_spec_import_data_
name
s:
\n
"
);
for
(
i
=
0
;
i
<
nb_imports
;
i
++
)
{
if
(
dll_imports
[
i
]
->
delay
)
continue
;
...
...
@@ -783,6 +784,13 @@ static void output_immediate_imports(void)
}
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
}
output
(
".L__wine_spec_import_data_ptrs:
\n
"
);
for
(
i
=
0
;
i
<
nb_imports
;
i
++
)
{
if
(
dll_imports
[
i
]
->
delay
)
continue
;
for
(
j
=
0
;
j
<
dll_imports
[
i
]
->
nb_imports
;
j
++
)
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
}
output
(
".L__wine_spec_imports_end:
\n
"
);
for
(
i
=
0
;
i
<
nb_imports
;
i
++
)
...
...
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