mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:01:17 +00:00
kernel32/tests: Simplify an ok() condition (PVS-Studio).
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
75d62d24d1
commit
bcff50a9d4
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue