kernel32/tests: Actually test a return value (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2015-03-04 09:39:10 +01:00 committed by Alexandre Julliard
parent bd9d41080f
commit dbe6c5576d
1 changed files with 1 additions and 0 deletions

View File

@ -2111,6 +2111,7 @@ static void test_readfileex_pending(void)
num_bytes = 0xdeadbeef;
SetLastError(0xdeadbeef);
ret = ReadFile(server, read_buf, 0, &num_bytes, &overlapped);
ok(!ret, "ReadFile should fail\n");
todo_wine
ok(GetLastError() == ERROR_IO_PENDING, "expected ERROR_IO_PENDING, got %d\n", GetLastError());
ok(num_bytes == 0, "bytes %u\n", num_bytes);