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
520a92de
Commit
520a92de
authored
Nov 22, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Avoid hardcoding array lengths.
parent
c2976f2d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dir.c
dlls/msvcrt/dir.c
+3
-3
No files found.
dlls/msvcrt/dir.c
View file @
520a92de
...
...
@@ -273,7 +273,7 @@ int CDECL MSVCRT__wchdir(const MSVCRT_wchar_t * newdir)
*/
int
CDECL
MSVCRT__chdrive
(
int
newdrive
)
{
WCHAR
buffer
[
3
]
=
{
'A'
,
':'
,
0
};
WCHAR
buffer
[]
=
{
'A'
,
':'
,
0
};
buffer
[
0
]
+=
newdrive
-
1
;
if
(
!
SetCurrentDirectoryW
(
buffer
))
...
...
@@ -801,7 +801,7 @@ char* CDECL MSVCRT__getdcwd(int drive, char * buf, int size)
else
{
char
dir
[
MAX_PATH
];
char
drivespec
[
4
]
=
{
'A'
,
':'
,
0
};
char
drivespec
[]
=
{
'A'
,
':'
,
0
};
int
dir_len
;
drivespec
[
0
]
+=
drive
-
1
;
...
...
@@ -886,7 +886,7 @@ MSVCRT_wchar_t* CDECL MSVCRT__wgetdcwd(int drive, MSVCRT_wchar_t * buf, int size
*/
unsigned
int
CDECL
MSVCRT__getdiskfree
(
unsigned
int
disk
,
struct
MSVCRT__diskfree_t
*
d
)
{
WCHAR
drivespec
[
4
]
=
{
'@'
,
':'
,
'\\'
,
0
};
WCHAR
drivespec
[]
=
{
'@'
,
':'
,
'\\'
,
0
};
DWORD
ret
[
4
];
unsigned
int
err
;
...
...
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