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
a226e2b7
Commit
a226e2b7
authored
Jun 19, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use .so builtin if found instead of falling back to the installed PE file.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
966b57c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
loader.c
dlls/ntdll/loader.c
+4
-1
No files found.
dlls/ntdll/loader.c
View file @
a226e2b7
...
...
@@ -2304,6 +2304,7 @@ static NTSTATUS open_builtin_file( char *name, WINE_MODREF **pwm, void **module,
{
WARN
(
"%s found in WINEDLLPATH but not a builtin, ignoring
\n
"
,
debugstr_a
(
name
)
);
NtUnmapViewOfSection
(
NtCurrentProcess
(),
*
module
);
*
module
=
NULL
;
status
=
STATUS_DLL_NOT_FOUND
;
}
...
...
@@ -2318,6 +2319,8 @@ static NTSTATUS open_builtin_file( char *name, WINE_MODREF **pwm, void **module,
{
if
((
*
so_name
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
strlen
(
name
)
+
1
)))
strcpy
(
*
so_name
,
name
);
NtUnmapViewOfSection
(
NtCurrentProcess
(),
*
module
);
*
module
=
NULL
;
status
=
STATUS_SUCCESS
;
}
else
status
=
STATUS_IMAGE_MACHINE_TYPE_MISMATCH
;
...
...
@@ -2505,7 +2508,7 @@ static NTSTATUS load_builtin_dll( LPCWSTR load_path, const UNICODE_STRING *nt_na
if
(
status
==
STATUS_DLL_NOT_FOUND
&&
*
module_ptr
)
{
/* builtin not found, load the module we got previously */
TRACE
(
"loading %s from PE
builtin
%s
\n
"
,
debugstr_w
(
name
),
debugstr_us
(
nt_name
)
);
TRACE
(
"loading %s from PE
file
%s
\n
"
,
debugstr_w
(
name
),
debugstr_us
(
nt_name
)
);
return
load_native_dll
(
load_path
,
nt_name
,
module_ptr
,
&
image_info
,
flags
,
pwm
,
&
st
);
}
if
(
status
)
return
status
;
...
...
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