ntdll/tests: Only test the readcount for a read below 0x10000 if the return code indicates a partial copy result.

This commit is contained in:
Jeremy White 2008-05-21 10:32:27 -05:00 committed by Alexandre Julliard
parent d392e0e097
commit 6868691af9
1 changed files with 2 additions and 1 deletions

View File

@ -819,6 +819,7 @@ static void test_readvirtualmemory(void)
todo_wine{
status = pNtReadVirtualMemory(process, (void *) 0x1234, buffer, 12, &readcount);
ok( status == STATUS_PARTIAL_COPY, "Expected STATUS_PARTIAL_COPY, got %08x\n", status);
if (status == STATUS_PARTIAL_COPY)
ok( readcount == 0, "Expected to read 0 bytes, got %ld\n",readcount);
}