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
43f283c0
Commit
43f283c0
authored
Apr 16, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
Apr 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
krnl386.exe: Fix size calculation in GetSystemDirectory16.
parent
3474e3da
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
file.c
dlls/krnl386.exe16/file.c
+2
-2
No files found.
dlls/krnl386.exe16/file.c
View file @
43f283c0
...
@@ -628,11 +628,11 @@ UINT16 WINAPI GetWindowsDirectory16( LPSTR path, UINT16 count )
...
@@ -628,11 +628,11 @@ UINT16 WINAPI GetWindowsDirectory16( LPSTR path, UINT16 count )
*/
*/
UINT16
WINAPI
GetSystemDirectory16
(
LPSTR
path
,
UINT16
count
)
UINT16
WINAPI
GetSystemDirectory16
(
LPSTR
path
,
UINT16
count
)
{
{
static
const
char
*
system16
=
"
\\
SYSTEM"
;
static
const
char
system16
[]
=
"
\\
SYSTEM"
;
char
windir
[
MAX_PATH
];
char
windir
[
MAX_PATH
];
UINT16
len
;
UINT16
len
;
len
=
GetWindowsDirectory16
(
windir
,
sizeof
(
windir
)
-
sizeof
(
system16
))
+
sizeof
(
system16
);
len
=
GetWindowsDirectory16
(
windir
,
sizeof
(
windir
)
-
sizeof
(
system16
)
+
1
)
+
sizeof
(
system16
);
if
(
count
>=
len
)
if
(
count
>=
len
)
{
{
lstrcpyA
(
path
,
windir
);
lstrcpyA
(
path
,
windir
);
...
...
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