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>
This commit is contained in:
parent
23e7b5a6b0
commit
e6042cf6a6
|
@ -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 */
|
/* If we rewind to the beginning of the line, don't increment line number */
|
||||||
line--;
|
line--;
|
||||||
}
|
}
|
||||||
else if (!is_exp_resync || (is_exp_resync && !err))
|
else if (!is_exp_resync || !err)
|
||||||
{
|
{
|
||||||
exp_ptr = exp_nl+1;
|
exp_ptr = exp_nl+1;
|
||||||
if(exp_nl+1 < exp_data+exp_size && exp_nl[0] == '\r' && exp_nl[1] == '\n')
|
if(exp_nl+1 < exp_data+exp_size && exp_nl[0] == '\r' && exp_nl[1] == '\n')
|
||||||
exp_ptr++;
|
exp_ptr++;
|
||||||
}
|
}
|
||||||
if (!is_out_resync || (is_out_resync && !err))
|
|
||||||
|
if (!is_out_resync || !err)
|
||||||
{
|
{
|
||||||
out_ptr = out_nl+1;
|
out_ptr = out_nl+1;
|
||||||
if(out_nl+1 < out_data+out_size && out_nl[0] == '\r' && out_nl[1] == '\n')
|
if(out_nl+1 < out_data+out_size && out_nl[0] == '\r' && out_nl[1] == '\n')
|
||||||
|
|
Loading…
Reference in New Issue