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
0e42fd97
Commit
0e42fd97
authored
Feb 25, 2014
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Detect 16-bit modules and resolve imports for them.
parent
f4d7a9ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
loader.c
dlls/ntdll/loader.c
+18
-1
No files found.
dlls/ntdll/loader.c
View file @
0e42fd97
...
...
@@ -1464,6 +1464,22 @@ static WCHAR *get_builtin_fullname( const WCHAR *path, const char *filename )
}
/*************************************************************************
* is_16bit_builtin
*/
static
BOOL
is_16bit_builtin
(
HMODULE
module
)
{
const
IMAGE_EXPORT_DIRECTORY
*
exports
;
DWORD
exp_size
;
if
(
!
(
exports
=
RtlImageDirectoryEntryToData
(
module
,
TRUE
,
IMAGE_DIRECTORY_ENTRY_EXPORT
,
&
exp_size
)))
return
FALSE
;
return
find_named_export
(
module
,
exports
,
exp_size
,
"__wine_spec_dos_header"
,
-
1
,
NULL
)
!=
NULL
;
}
/***********************************************************************
* load_builtin_callback
*
...
...
@@ -1511,7 +1527,8 @@ static void load_builtin_callback( void *module, const char *filename )
wm
->
ldr
.
Flags
|=
LDR_WINE_INTERNAL
;
if
((
nt
->
FileHeader
.
Characteristics
&
IMAGE_FILE_DLL
)
||
nt
->
OptionalHeader
.
Subsystem
==
IMAGE_SUBSYSTEM_NATIVE
)
nt
->
OptionalHeader
.
Subsystem
==
IMAGE_SUBSYSTEM_NATIVE
||
is_16bit_builtin
(
module
))
{
/* fixup imports */
...
...
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