Module: wine Branch: master Commit: bcff50a9d476a03b93e21577d76288833900e39a URL: http://source.winehq.org/git/wine.git/?a=commit;h=bcff50a9d476a03b93e21577d7...
Author: Michael Stefaniuc mstefani@redhat.de Date: Wed Oct 28 11:21:13 2015 +0100
kernel32/tests: Simplify an ok() condition (PVS-Studio).
Signed-off-by: Michael Stefaniuc mstefani@redhat.de Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/kernel32/tests/comm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/tests/comm.c b/dlls/kernel32/tests/comm.c index cbd276b..97ec794 100644 --- a/dlls/kernel32/tests/comm.c +++ b/dlls/kernel32/tests/comm.c @@ -941,7 +941,8 @@ static void test_waittxempty(void) evtmask = 0; SetLastError(0xdeadbeef); res = WaitCommEvent(hcom, &evtmask, &ovl_wait); - ok((!res && GetLastError() == ERROR_IO_PENDING) || res /* busy system */, "%d: WaitCommEvent error %d\n", i, GetLastError()); + ok(res /* busy system */ || GetLastError() == ERROR_IO_PENDING, + "%d: WaitCommEvent error %d\n", i, GetLastError());
res = WaitForSingleObject(ovl_wait.hEvent, TIMEOUT); if (i == 0)