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
10b3402c
Commit
10b3402c
authored
Apr 16, 2001
by
Ove Kaaven
Committed by
Alexandre Julliard
Apr 16, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let LOAD_LIBRARY_AS_DATAFILE load the builtin dll if loading a native
DLL failed, so that winesetuptk's fake-windows installation work.
parent
e8ffcaa3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
module.c
loader/module.c
+7
-8
No files found.
loader/module.c
View file @
10b3402c
...
...
@@ -1255,26 +1255,25 @@ HMODULE WINAPI LoadLibraryExA(LPCSTR libname, HANDLE hfile, DWORD flags)
if
(
flags
&
LOAD_LIBRARY_AS_DATAFILE
)
{
char
filename
[
256
];
HANDLE
hFile
;
HMODULE
hmod
=
0
;
/* This method allows searching for the 'native' libraries only */
if
(
!
SearchPathA
(
NULL
,
libname
,
".dll"
,
sizeof
(
filename
),
filename
,
NULL
))
if
(
SearchPathA
(
NULL
,
libname
,
".dll"
,
sizeof
(
filename
),
filename
,
NULL
))
{
flags
|=
DONT_RESOLVE_DLL_REFERENCES
;
/* Just in case */
goto
try_builtin
;
/* Fallback to normal behaviour */
}
/* FIXME: maybe we should use the hfile parameter instead */
hFile
=
CreateFileA
(
filename
,
GENERIC_READ
,
FILE_SHARE_READ
,
HANDLE
hFile
=
CreateFileA
(
filename
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
if
(
hFile
!=
INVALID_HANDLE_VALUE
)
{
hmod
=
PE_LoadImage
(
hFile
,
filename
,
flags
);
CloseHandle
(
hFile
);
}
return
hmod
;
if
(
hmod
)
return
hmod
;
}
try_builtin:
flags
|=
DONT_RESOLVE_DLL_REFERENCES
;
/* Just in case */
/* Fallback to normal behaviour */
}
RtlAcquirePebLock
();
wm
=
MODULE_LoadLibraryExA
(
libname
,
hfile
,
flags
);
...
...
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