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
d4441f28
Commit
d4441f28
authored
Aug 12, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the 16-bit system directory if any to the module search path.
parent
cab04351
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
module.c
dlls/kernel/module.c
+8
-1
No files found.
dlls/kernel/module.c
View file @
d4441f28
...
...
@@ -617,13 +617,20 @@ static const WCHAR *get_dll_system_path(void)
WCHAR
*
p
,
*
path
;
int
len
=
3
;
len
+=
GetSystemDirectoryW
(
NULL
,
0
);
len
+=
2
*
GetSystemDirectoryW
(
NULL
,
0
);
len
+=
GetWindowsDirectoryW
(
NULL
,
0
);
p
=
path
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
*
p
++
=
'.'
;
*
p
++
=
';'
;
GetSystemDirectoryW
(
p
,
path
+
len
-
p
);
p
+=
strlenW
(
p
);
/* if system directory ends in "32" add 16-bit version too */
if
(
p
[
-
2
]
==
'3'
&&
p
[
-
1
]
==
'2'
)
{
*
p
++
=
';'
;
GetSystemDirectoryW
(
p
,
path
+
len
-
p
);
p
+=
strlenW
(
p
)
-
2
;
}
*
p
++
=
';'
;
GetWindowsDirectoryW
(
p
,
path
+
len
-
p
);
cached_path
=
path
;
...
...
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