Avoid a failure under Win9x

Dmitry Timoshkov dmitry at baikal.ru
Fri May 21 21:28:30 CDT 2004


Hello,

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Avoid a failure under Win9x.

--- cvs/hq/wine/dlls/kernel/tests/file.c	Wed Apr 28 05:02:48 2004
+++ wine/dlls/kernel/tests/file.c	Sat May 22 02:21:35 2004
@@ -750,7 +780,8 @@ static void test_MoveFileA(void)
     /* FIXME: if we create a file with wildcards we can't delete it now that DeleteFile works correctly */
     ret = MoveFileA(source, dest);
     ok(!ret, "MoveFileA: shouldn't move to wildcard file\n");
-    ok(GetLastError() == ERROR_INVALID_NAME,
+    ok(GetLastError() == ERROR_INVALID_NAME || /* NT */
+       GetLastError() == ERROR_FILE_NOT_FOUND, /* Win9x */
        "MoveFileA: with wildcards, unexpected error %ld\n", GetLastError());
     if (ret || (GetLastError() != ERROR_INVALID_NAME))
     {






More information about the wine-patches mailing list