Fix NT4 advapi32 test
Jakob Eriksson
jakov at vmlinux.org
Sun Apr 17 15:13:16 CDT 2005
Fail gracefully on permission denied.
As per:
http://test.winehq.org/data/200504171000/nt4_ivanleo/advapi32:registry.txt
-------------- next part --------------
Index: registry.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/tests/registry.c,v
retrieving revision 1.20
diff -u -r1.20 registry.c
--- registry.c 16 Apr 2005 10:49:10 -0000 1.20
+++ registry.c 17 Apr 2005 20:12:37 -0000
@@ -357,7 +357,8 @@
DWORD ret;
ret = RegDeleteKey(hkey_main, NULL);
- ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %ld\n", ret);
+ ok(ret == ERROR_INVALID_PARAMETER || ret == ERROR_ACCESS_DENIED,
+ "expected ERROR_INVALID_PARAMETER or ERROR_ACCESS_DENIED, got %ld\n", ret);
}
static void test_reg_save_key()
More information about the wine-patches
mailing list