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
0335a4b9
Commit
0335a4b9
authored
Feb 28, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't reset the load count when reusing a builtin modref.
parent
8a8a5487
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
loader.c
dlls/ntdll/loader.c
+3
-3
No files found.
dlls/ntdll/loader.c
View file @
0335a4b9
...
...
@@ -1420,6 +1420,7 @@ static NTSTATUS load_native_dll( LPCWSTR load_path, LPCWSTR name, HANDLE file,
TRACE_
(
loaddll
)(
" Loaded module %s : native
\n
"
,
debugstr_w
(
wm
->
ldr
.
FullDllName
.
Buffer
)
);
wm
->
ldr
.
LoadCount
=
1
;
*
pwm
=
wm
;
return
STATUS_SUCCESS
;
}
...
...
@@ -1536,10 +1537,12 @@ static NTSTATUS load_builtin_dll( LPCWSTR load_path, LPCWSTR path, HANDLE file,
}
}
if
(
!
info
.
wm
)
return
STATUS_INVALID_IMAGE_FORMAT
;
if
(
info
.
wm
->
ldr
.
LoadCount
!=
-
1
)
info
.
wm
->
ldr
.
LoadCount
++
;
}
else
{
TRACE_
(
loaddll
)(
"Loaded module %s : builtin
\n
"
,
debugstr_w
(
info
.
wm
->
ldr
.
FullDllName
.
Buffer
)
);
info
.
wm
->
ldr
.
LoadCount
=
1
;
info
.
wm
->
ldr
.
SectionHandle
=
handle
;
}
...
...
@@ -1738,9 +1741,6 @@ static NTSTATUS load_dll( LPCWSTR load_path, LPCWSTR libname, DWORD flags, WINE_
TRACE
(
"Loaded module %s (%s) at %p
\n
"
,
debugstr_w
(
filename
),
((
*
pwm
)
->
ldr
.
Flags
&
LDR_WINE_INTERNAL
)
?
"builtin"
:
"native"
,
(
*
pwm
)
->
ldr
.
BaseAddress
);
/* Set the ldr.LoadCount here so that an attach failure will */
/* decrement the dependencies through the MODULE_FreeLibrary call. */
(
*
pwm
)
->
ldr
.
LoadCount
=
1
;
if
(
handle
)
NtClose
(
handle
);
if
(
filename
!=
buffer
)
RtlFreeHeap
(
GetProcessHeap
(),
0
,
filename
);
return
nts
;
...
...
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