Module: wine Branch: master Commit: 91502b0634078cf24dad25a22f8c69758f55525f URL: http://source.winehq.org/git/wine.git/?a=commit;h=91502b0634078cf24dad25a22f...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jan 28 19:47:27 2010 +0100
cabinet/tests: Fix accesses to an invalid pointer.
---
dlls/cabinet/tests/extract.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/cabinet/tests/extract.c b/dlls/cabinet/tests/extract.c index 76bd7b7..29fd1c7 100644 --- a/dlls/cabinet/tests/extract.c +++ b/dlls/cabinet/tests/extract.c @@ -670,6 +670,7 @@ static void test_Extract(void) lstrcpyA(session.Destination, "dest"); session.Operation = EXTRACT_FILLFILELIST | EXTRACT_EXTRACTFILES; res = pExtract(&session, "extract.cab"); + node = session.FileList; todo_wine { ok(res == HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) || res == E_FAIL, @@ -694,8 +695,8 @@ static void test_Extract(void) todo_wine { ok(!DeleteFileA("dest\testdir\d.txt"), "Expected dest\testdir\d.txt to not exist\n"); + ok(!check_list(&node, "testdir\d.txt", FALSE), "list entry should not exist\n"); } - ok(!check_list(&node, "testdir\d.txt", FALSE), "list entry should not exist\n"); ok(!check_list(&node, "testdir\c.txt", FALSE), "list entry wrong\n"); ok(!check_list(&node, "b.txt", FALSE), "list entry wrong\n"); ok(!check_list(&node, "a.txt", TRUE), "list entry wrong\n");