Author: janderwald
Date: Sun Aug 13 22:52:57 2006
New Revision: 23567
URL:
http://svn.reactos.org/svn/reactos?rev=23567&view=rev
Log:
* add registry test code from bug 1750 by P43LOk
Modified:
trunk/reactos/regtests/winetests/advapi32/registry.c
Modified: trunk/reactos/regtests/winetests/advapi32/registry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/regtests/winetests/advapi3…
==============================================================================
--- trunk/reactos/regtests/winetests/advapi32/registry.c (original)
+++ trunk/reactos/regtests/winetests/advapi32/registry.c Sun Aug 13 22:52:57 2006
@@ -351,10 +351,21 @@
static void test_reg_delete_key()
{
DWORD ret;
-
+ HKEY hkResult = NULL;
+
ret = RegDeleteKey(hkey_main, NULL);
ok(ret == ERROR_INVALID_PARAMETER || ret == ERROR_ACCESS_DENIED,
"expected ERROR_INVALID_PARAMETER or ERROR_ACCESS_DENIED, got %ld\n",
ret);
+
+ ret = RegCreateKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Tost",
&hkResult);
+
+ ret = RegDeleteValue(hkResult, "noExists");
+ ok(ret == ERROR_FILE_NOT_FOUND, "expected ERROR_FILE_NOT_FOUND, got %ld\n",
ret);
+
+ ret = RegDeleteKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Tost");
+
+ ret = RegCloseKey(hkResult);
+
}
static void test_reg_save_key()