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
b8743f1f
Commit
b8743f1f
authored
May 19, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Set LDR_WINE_INTERNAL flag also for PE builtins.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
61aea5a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
loader.c
dlls/ntdll/loader.c
+3
-1
No files found.
dlls/ntdll/loader.c
View file @
b8743f1f
...
...
@@ -2147,6 +2147,7 @@ static NTSTATUS load_native_dll( LPCWSTR load_path, const UNICODE_STRING *nt_nam
wm
->
ino
=
st
->
st_ino
;
if
(
image_info
->
loader_flags
)
wm
->
ldr
.
Flags
|=
LDR_COR_IMAGE
;
if
(
image_info
->
image_flags
&
IMAGE_FLAGS_ComPlusILOnly
)
wm
->
ldr
.
Flags
|=
LDR_COR_ILONLY
;
if
(
image_info
->
image_flags
&
IMAGE_FLAGS_WineBuiltin
)
wm
->
ldr
.
Flags
|=
LDR_WINE_INTERNAL
;
set_security_cookie
(
module
,
image_info
->
map_size
);
...
...
@@ -3347,7 +3348,8 @@ static void free_modref( WINE_MODREF *wm )
free_tls_slot
(
&
wm
->
ldr
);
RtlReleaseActivationContext
(
wm
->
ldr
.
ActivationContext
);
if
(
wm
->
ldr
.
Flags
&
LDR_WINE_INTERNAL
)
wine_dll_unload
(
wm
->
ldr
.
SectionHandle
);
if
((
wm
->
ldr
.
Flags
&
LDR_WINE_INTERNAL
)
&&
wm
->
ldr
.
SectionHandle
)
wine_dll_unload
(
wm
->
ldr
.
SectionHandle
);
NtUnmapViewOfSection
(
NtCurrentProcess
(),
wm
->
ldr
.
BaseAddress
);
if
(
cached_modref
==
wm
)
cached_modref
=
NULL
;
RtlFreeUnicodeString
(
&
wm
->
ldr
.
FullDllName
);
...
...
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