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
5fe7589b
Commit
5fe7589b
authored
Jul 26, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Get rid of the lookup in the top dlls/ dir, all dlls are named correctly now.
parent
fd514479
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
loader.c
libs/wine/loader.c
+3
-5
No files found.
libs/wine/loader.c
View file @
5fe7589b
...
...
@@ -182,13 +182,11 @@ static char *next_dll_path( struct dll_path_context *context )
case
1
:
/* try dlls dir with subdir prefix */
if
(
namelen
>
4
&&
!
memcmp
(
context
->
name
+
namelen
-
4
,
".dll"
,
4
))
namelen
-=
4
;
path
=
prepend
(
path
,
context
->
name
,
namelen
);
/* fall through */
case
2
:
/* try dlls dir without prefix */
path
=
prepend
(
path
,
"/dlls"
,
sizeof
(
"/dlls"
)
-
1
);
path
=
prepend
(
path
,
build_dir
,
strlen
(
build_dir
)
);
return
path
;
default:
index
-=
3
;
index
-=
2
;
if
(
index
<
nb_dll_paths
)
return
prepend
(
context
->
name
,
dll_paths
[
index
],
strlen
(
dll_paths
[
index
]
));
break
;
...
...
@@ -204,7 +202,7 @@ static char *first_dll_path( const char *name, const char *ext, struct dll_path_
int
namelen
=
strlen
(
name
);
context
->
buffer
=
malloc
(
dll_path_maxlen
+
2
*
namelen
+
strlen
(
ext
)
+
3
);
context
->
index
=
build_dir
?
0
:
3
;
/* if no build dir skip all the build dir magic cases */
context
->
index
=
build_dir
?
0
:
2
;
/* if no build dir skip all the build dir magic cases */
context
->
name
=
context
->
buffer
+
dll_path_maxlen
+
namelen
+
1
;
context
->
namelen
=
namelen
+
1
;
...
...
@@ -655,7 +653,7 @@ void wine_init( int argc, char *argv[], char *error, int error_size )
if
((
ntdll
=
wine_dlopen
(
path
,
RTLD_NOW
,
error
,
error_size
)))
{
/* if we didn't use the default dll dir, remove it from the search path */
if
(
default_dlldir
[
0
]
&&
context
.
index
<
nb_dll_paths
)
nb_dll_paths
--
;
if
(
default_dlldir
[
0
]
&&
context
.
index
<
nb_dll_paths
+
2
)
nb_dll_paths
--
;
break
;
}
}
...
...
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