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
a46f311f
Commit
a46f311f
authored
Oct 29, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f051aa67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wcmdmain.c
programs/cmd/wcmdmain.c
+2
-2
No files found.
programs/cmd/wcmdmain.c
View file @
a46f311f
...
...
@@ -2419,9 +2419,9 @@ int wmain (int argc, WCHAR *argvW[])
OSVERSIONINFOW
osv
;
char
osver
[
50
];
if
(
!
GetEnvironmentVariableW
(
comspecW
,
comspec
,
sizeof
(
comspec
)
/
sizeof
(
WCHAR
)))
if
(
!
GetEnvironmentVariableW
(
comspecW
,
comspec
,
ARRAY_SIZE
(
comspec
)))
{
GetSystemDirectoryW
(
comspec
,
(
sizeof
(
comspec
)
-
sizeof
(
cmdW
))
/
sizeof
(
WCHAR
));
GetSystemDirectoryW
(
comspec
,
ARRAY_SIZE
(
comspec
)
-
ARRAY_SIZE
(
cmdW
));
strcatW
(
comspec
,
cmdW
);
SetEnvironmentVariableW
(
comspecW
,
comspec
);
}
...
...
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