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
9f1b8197
Commit
9f1b8197
authored
Jul 15, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't get system directory from the environment, use
GetSystemDirectory instead.
parent
99a6efa1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
w32skernel.c
dlls/win32s/w32skernel.c
+5
-8
No files found.
dlls/win32s/w32skernel.c
View file @
9f1b8197
...
...
@@ -32,14 +32,12 @@
*/
LPSTR
WINAPI
GetWin32sDirectory
(
void
)
{
static
char
sysdir
[
0x80
];
LPSTR
text
;
static
const
char
win32s
[]
=
"
\\
win32s"
;
GetEnvironmentVariableA
(
"winsysdir"
,
sysdir
,
0x80
);
if
(
!
sysdir
)
return
NULL
;
strcat
(
sysdir
,
"
\\
WIN32S"
);
text
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
sysdir
)
+
1
);
strcpy
(
text
,
sysdir
);
int
len
=
GetSystemDirectoryA
(
NULL
,
0
);
LPSTR
text
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
+
sizeof
(
win32s
)
-
1
);
GetSystemDirectoryA
(
text
,
len
);
strcat
(
text
,
win32s
);
return
text
;
}
...
...
@@ -60,4 +58,3 @@ HTASK16 WINAPI GetCurrentTask32(void)
{
return
NtCurrentTeb
()
->
htask16
;
}
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