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
23e7b5a6
Commit
23e7b5a6
authored
Oct 14, 2015
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Simplify boolean expressions (PVS-Studio).
Signed-off-by:
Frédéric Delanoy
<
frederic.delanoy@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b39b37c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
builtins.c
programs/cmd/builtins.c
+1
-1
wcmdmain.c
programs/cmd/wcmdmain.c
+1
-1
No files found.
programs/cmd/builtins.c
View file @
23e7b5a6
...
...
@@ -1005,7 +1005,7 @@ void WCMD_copy(WCHAR * args) {
if
(
!
srcisdevice
)
FindClose
(
hff
);
}
else
{
/* Error if the first file was not found */
if
(
!
anyconcats
||
(
anyconcats
&&
!
writtenoneconcat
)
)
{
if
(
!
anyconcats
||
!
writtenoneconcat
)
{
WCMD_print_error
();
errorlevel
=
1
;
}
...
...
programs/cmd/wcmdmain.c
View file @
23e7b5a6
...
...
@@ -879,7 +879,7 @@ static void handleExpansion(WCHAR *cmd, BOOL atExecute, BOOL delayed) {
if
(
startchar
==
'%'
&&
forvaridx
!=
-
1
&&
forloopcontext
.
variable
[
forvaridx
])
{
/* Replace the 2 characters, % and for variable character */
WCMD_strsubstW
(
p
,
p
+
2
,
forloopcontext
.
variable
[
forvaridx
],
-
1
);
}
else
if
(
!
atExecute
||
(
atExecute
&&
startchar
==
'!'
)
)
{
}
else
if
(
!
atExecute
||
startchar
==
'!'
)
{
p
=
WCMD_expand_envvar
(
p
,
startchar
);
/* In a FOR loop, see if this is the variable to replace */
...
...
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