Module: wine Branch: master Commit: 6868691af98a458abab6d9171b0aac9604f565e2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6868691af98a458abab6d9171b...
Author: Jeremy White jwhite@codeweavers.com Date: Wed May 21 10:32:27 2008 -0500
ntdll/tests: Only test the readcount for a read below 0x10000 if the return code indicates a partial copy result.
---
dlls/ntdll/tests/info.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/tests/info.c b/dlls/ntdll/tests/info.c index 9fab806..140be05 100644 --- a/dlls/ntdll/tests/info.c +++ b/dlls/ntdll/tests/info.c @@ -819,7 +819,8 @@ 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); - ok( readcount == 0, "Expected to read 0 bytes, got %ld\n",readcount); + if (status == STATUS_PARTIAL_COPY) + ok( readcount == 0, "Expected to read 0 bytes, got %ld\n",readcount); }
/* 0 handle */