Alexandre Julliard : kernel32/tests: Add another error code in the CreateDirectory test.

Alexandre Julliard julliard at winehq.org
Wed Feb 4 09:15:32 CST 2009


Module: wine
Branch: master
Commit: 5d0f3aa33b000be1b6c2d91506a8b5f9d3a7f68e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5d0f3aa33b000be1b6c2d91506a8b5f9d3a7f68e

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Feb  3 22:23:19 2009 +0100

kernel32/tests: Add another error code in the CreateDirectory test.

---

 dlls/kernel32/tests/directory.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/tests/directory.c b/dlls/kernel32/tests/directory.c
index 2c943d1..a0ccd9f 100644
--- a/dlls/kernel32/tests/directory.c
+++ b/dlls/kernel32/tests/directory.c
@@ -363,7 +363,7 @@ static void test_CreateDirectoryW(void)
     GetTempPathW(MAX_PATH, tmpdir);
     tmpdir[3] = 0; /* truncate the path */
     ret = CreateDirectoryW(tmpdir, NULL);
-    ok(ret == FALSE && GetLastError() == ERROR_ACCESS_DENIED,
+    ok(ret == FALSE && (GetLastError() == ERROR_ACCESS_DENIED || GetLastError() == ERROR_ALREADY_EXISTS),
        "should deny access to the drive root ret %u err %u\n", ret, GetLastError());
 
     GetTempPathW(MAX_PATH, tmpdir);




More information about the wine-cvs mailing list