kernel directory test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The test for RemoveDirectoryW does not check for
ERROR_CALL_NOT_IMPLEMENTED, so it currently fails
on Win98. This patch fixes that.

Index: dlls/kernel/tests/directory.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/directory.c,v
retrieving revision 1.7
diff -u -r1.7 directory.c
--- dlls/kernel/tests/directory.c	16 Sep 2003 01:19:21 -0000	1.7
+++ dlls/kernel/tests/directory.c	8 Dec 2003 20:02:47 -0000
@@ -311,6 +311,9 @@
     GetTempPathW(MAX_PATH, tmpdir);
     lstrcatW(tmpdir, tmp_dir_name);
     ret = CreateDirectoryW(tmpdir, NULL);
+    if (!ret && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
+      return;
+
     ok(ret == TRUE, "CreateDirectoryW should always succeed");
 
     ret = RemoveDirectoryW(tmpdir);

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux