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
e6042cf6
Commit
e6042cf6
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/tests: 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
23e7b5a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
batch.c
programs/cmd/tests/batch.c
+3
-2
No files found.
programs/cmd/tests/batch.c
View file @
e6042cf6
...
...
@@ -320,13 +320,14 @@ static void test_output(const char *out_data, DWORD out_size, const char *exp_da
/* If we rewind to the beginning of the line, don't increment line number */
line
--
;
}
else
if
(
!
is_exp_resync
||
(
is_exp_resync
&&
!
err
)
)
else
if
(
!
is_exp_resync
||
!
err
)
{
exp_ptr
=
exp_nl
+
1
;
if
(
exp_nl
+
1
<
exp_data
+
exp_size
&&
exp_nl
[
0
]
==
'\r'
&&
exp_nl
[
1
]
==
'\n'
)
exp_ptr
++
;
}
if
(
!
is_out_resync
||
(
is_out_resync
&&
!
err
))
if
(
!
is_out_resync
||
!
err
)
{
out_ptr
=
out_nl
+
1
;
if
(
out_nl
+
1
<
out_data
+
out_size
&&
out_nl
[
0
]
==
'\r'
&&
out_nl
[
1
]
==
'\n'
)
...
...
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