[advapi32] Make sure it's a real cleanup.
Paul Vriens
Paul.Vriens at xs4all.nl
Mon Oct 2 09:07:39 CDT 2006
Hi,
NULL as a parameter results in ERROR_INVALID_PARAMETER and nothing is deleted.
Changelog
Make sure it's a real cleanup.
Cheers,
Paul.
---
dlls/advapi32/tests/registry.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index 2341cad..c9a9e36 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -585,8 +585,8 @@ static void test_reg_create_key(void)
ok(!ret, "RegCreateKeyExA failed with error %ld\n", ret);
/* clean up */
- RegDeleteKey(hkey2, NULL);
- RegDeleteKey(hkey1, NULL);
+ RegDeleteKey(hkey2, "");
+ RegDeleteKey(hkey1, "");
/* beginning backslash character */
ret = RegCreateKeyExA(hkey_main, "\\Subkey3", 0, NULL, 0, KEY_NOTIFY, NULL, &hkey1, NULL);
--
1.4.2.3
More information about the wine-patches
mailing list