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
2d08465b
Commit
2d08465b
authored
Jan 18, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Loader optimization.
Optimize for the case where a DLL with no path is requested and it is already loaded.
parent
273470e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
loader.c
dlls/ntdll/loader.c
+6
-6
No files found.
dlls/ntdll/loader.c
View file @
2d08465b
...
...
@@ -1487,6 +1487,12 @@ static NTSTATUS find_dll_file( const WCHAR *load_path, const WCHAR *libname,
}
nt_name
.
Buffer
=
NULL
;
if
(
!
contains_path
(
libname
))
{
if
((
*
pwm
=
find_basename_module
(
libname
))
!=
NULL
)
goto
found
;
}
if
(
RtlDetermineDosPathNameType_U
(
libname
)
==
RELATIVE_PATH
)
{
/* we need to search for it */
...
...
@@ -1496,11 +1502,6 @@ static NTSTATUS find_dll_file( const WCHAR *load_path, const WCHAR *libname,
if
(
len
>=
*
size
)
goto
overflow
;
if
((
*
pwm
=
find_fullname_module
(
filename
))
!=
NULL
)
goto
found
;
/* check for already loaded module in a different path */
if
(
!
contains_path
(
libname
))
{
if
((
*
pwm
=
find_basename_module
(
file_part
))
!=
NULL
)
goto
found
;
}
if
(
!
RtlDosPathNameToNtPathName_U
(
filename
,
&
nt_name
,
NULL
,
NULL
))
{
RtlFreeHeap
(
GetProcessHeap
(),
0
,
dllname
);
...
...
@@ -1525,7 +1526,6 @@ static NTSTATUS find_dll_file( const WCHAR *load_path, const WCHAR *libname,
len
=
strlenW
(
libname
)
*
sizeof
(
WCHAR
);
if
(
len
>=
*
size
)
goto
overflow
;
strcpyW
(
filename
,
libname
);
*
pwm
=
find_basename_module
(
filename
);
goto
found
;
}
}
...
...
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