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
3631ee05
Commit
3631ee05
authored
Mar 09, 2011
by
Austin English
Committed by
Alexandre Julliard
Mar 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Avoid shadowing a parameter.
parent
38a87ecf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
batch.c
programs/cmd/batch.c
+3
-3
No files found.
programs/cmd/batch.c
View file @
3631ee05
...
...
@@ -399,14 +399,14 @@ void WCMD_HandleTildaModifiers(WCHAR **start, WCHAR *forVariable, WCHAR *forValu
if
(
memchrW
(
firstModifier
,
'$'
,
modifierLen
)
!=
NULL
)
{
/* Special Case: Search envar specified in $[envvar] for outputparam
Note both $ and : are guaranteed otherwise check above would fail */
WCHAR
*
start
=
strchrW
(
firstModifier
,
'$'
)
+
1
;
WCHAR
*
begin
=
strchrW
(
firstModifier
,
'$'
)
+
1
;
WCHAR
*
end
=
strchrW
(
firstModifier
,
':'
);
WCHAR
env
[
MAX_PATH
];
WCHAR
fullpath
[
MAX_PATH
];
/* Extract the env var */
memcpy
(
env
,
start
,
(
end
-
start
)
*
sizeof
(
WCHAR
));
env
[(
end
-
start
)]
=
0x00
;
memcpy
(
env
,
begin
,
(
end
-
begin
)
*
sizeof
(
WCHAR
));
env
[(
end
-
begin
)]
=
0x00
;
/* If env var not found, return empty string */
if
((
GetEnvironmentVariableW
(
env
,
fullpath
,
MAX_PATH
)
==
0
)
||
...
...
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