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
cee15b24
Commit
cee15b24
authored
Feb 24, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Try to load all modules in the programs directory, not just those with .exe extension.
parent
6c8e3a85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
loader.c
libs/wine/loader.c
+10
-9
No files found.
libs/wine/loader.c
View file @
cee15b24
...
...
@@ -169,22 +169,23 @@ static char *next_dll_path( struct dll_path_context *context )
switch
(
index
)
{
case
0
:
/* try programs dir for .exe files */
if
(
!
context
->
win16
&&
namelen
>
4
&&
!
memcmp
(
context
->
name
+
namelen
-
4
,
".exe"
,
4
))
case
0
:
/* try dlls dir with subdir prefix */
if
(
namelen
>
4
&&
!
memcmp
(
context
->
name
+
namelen
-
4
,
".dll"
,
4
))
namelen
-=
4
;
if
(
!
context
->
win16
)
path
=
prepend
(
path
,
context
->
name
,
namelen
);
path
=
prepend
(
path
,
"/dlls"
,
sizeof
(
"/dlls"
)
-
1
);
path
=
prepend
(
path
,
build_dir
,
strlen
(
build_dir
)
);
return
path
;
case
1
:
/* try programs dir with subdir prefix */
if
(
!
context
->
win16
)
{
path
=
prepend
(
path
,
context
->
name
,
namelen
-
4
);
if
(
namelen
>
4
&&
!
memcmp
(
context
->
name
+
namelen
-
4
,
".exe"
,
4
))
namelen
-=
4
;
path
=
prepend
(
path
,
context
->
name
,
namelen
);
path
=
prepend
(
path
,
"/programs"
,
sizeof
(
"/programs"
)
-
1
);
path
=
prepend
(
path
,
build_dir
,
strlen
(
build_dir
)
);
return
path
;
}
context
->
index
++
;
/* fall through */
case
1
:
/* try dlls dir with subdir prefix */
if
(
namelen
>
4
&&
!
memcmp
(
context
->
name
+
namelen
-
4
,
".dll"
,
4
))
namelen
-=
4
;
if
(
!
context
->
win16
)
path
=
prepend
(
path
,
context
->
name
,
namelen
);
path
=
prepend
(
path
,
"/dlls"
,
sizeof
(
"/dlls"
)
-
1
);
path
=
prepend
(
path
,
build_dir
,
strlen
(
build_dir
)
);
return
path
;
default:
index
-=
2
;
if
(
index
<
nb_dll_paths
)
...
...
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