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
e22ce462
Commit
e22ce462
authored
Aug 30, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Pin down all dlls imported by the main exe.
parent
613cfc28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
loader.c
dlls/ntdll/loader.c
+1
-2
No files found.
dlls/ntdll/loader.c
View file @
e22ce462
...
...
@@ -945,6 +945,7 @@ static NTSTATUS process_attach( WINE_MODREF *wm, LPVOID lpReserved )
/* Tag current MODREF to prevent recursive loop */
wm
->
ldr
.
Flags
|=
LDR_LOAD_IN_PROGRESS
;
if
(
lpReserved
)
wm
->
ldr
.
LoadCount
=
-
1
;
/* pin it if imported by the main exe */
if
(
wm
->
ldr
.
ActivationContext
)
RtlActivateActivationContext
(
0
,
wm
->
ldr
.
ActivationContext
,
&
cookie
);
/* Recursively attach all DLLs this one depends on */
...
...
@@ -1006,7 +1007,6 @@ static void attach_implicitly_loaded_dlls( LPVOID reserved )
if
(
mod
->
Flags
&
(
LDR_LOAD_IN_PROGRESS
|
LDR_PROCESS_ATTACHED
))
continue
;
TRACE
(
"found implicitly loaded %s, attaching to it
\n
"
,
debugstr_w
(
mod
->
BaseDllName
.
Buffer
));
mod
->
LoadCount
=
-
1
;
/* we can't unload it anyway */
process_attach
(
CONTAINING_RECORD
(
mod
,
WINE_MODREF
,
ldr
),
reserved
);
break
;
/* restart the search from the start */
}
...
...
@@ -2295,7 +2295,6 @@ void WINAPI LdrInitializeThunk( ULONG unknown1, ULONG unknown2, ULONG unknown3,
ERR
(
"%s is a dll, not an executable
\n
"
,
debugstr_w
(
wm
->
ldr
.
FullDllName
.
Buffer
)
);
exit
(
1
);
}
wm
->
ldr
.
LoadCount
=
-
1
;
/* can't unload main exe */
peb
->
ProcessParameters
->
ImagePathName
=
wm
->
ldr
.
FullDllName
;
version_init
(
wm
->
ldr
.
FullDllName
.
Buffer
);
...
...
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