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
220af426
Commit
220af426
authored
Jan 06, 2010
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jan 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
krnl386: The 16bit system directory is <windir>\SYSTEM.
parent
69bf1856
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
file.c
dlls/krnl386.exe16/file.c
+14
-3
No files found.
dlls/krnl386.exe16/file.c
View file @
220af426
...
...
@@ -190,14 +190,14 @@ static char *get_search_path(void)
}
len
=
(
2
+
/* search order: first current dir */
GetSystemDirectory
A
(
NULL
,
0
)
+
1
+
/* then system dir */
GetSystemDirectory
16
(
NULL
,
0
)
+
1
+
/* then system dir */
GetWindowsDirectoryA
(
NULL
,
0
)
+
1
+
/* then windows dir */
strlen
(
module
)
+
1
+
/* then module path */
GetEnvironmentVariableA
(
"PATH"
,
NULL
,
0
)
+
1
);
/* then look in PATH */
if
(
!
(
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
)))
return
NULL
;
strcpy
(
ret
,
".;"
);
p
=
ret
+
2
;
GetSystemDirectory
A
(
p
,
ret
+
len
-
p
);
GetSystemDirectory
16
(
p
,
ret
+
len
-
p
);
p
+=
strlen
(
p
);
*
p
++
=
';'
;
GetWindowsDirectoryA
(
p
,
ret
+
len
-
p
);
...
...
@@ -629,7 +629,18 @@ UINT16 WINAPI GetWindowsDirectory16( LPSTR path, UINT16 count )
*/
UINT16
WINAPI
GetSystemDirectory16
(
LPSTR
path
,
UINT16
count
)
{
return
GetSystemDirectoryA
(
path
,
count
);
static
const
char
*
system16
=
"
\\
SYSTEM"
;
char
windir
[
MAX_PATH
];
UINT16
len
;
len
=
GetWindowsDirectory16
(
windir
,
sizeof
(
windir
)
-
sizeof
(
system16
))
+
sizeof
(
system16
);
if
(
count
>=
len
)
{
lstrcpyA
(
path
,
windir
);
lstrcatA
(
path
,
system16
);
len
--
;
/* space for the terminating zero is not included on success */
}
return
len
;
}
...
...
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