From 575c0c896ac43067065049e778f6482562911f8b Mon Sep 17 00:00:00 2001 From: jean Date: Fri, 10 Nov 2000 15:41:46 +0000 Subject: [PATCH] bugs corrected svn path=/trunk/; revision=1425 --- reactos/apps/tests/regtest/regtest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/apps/tests/regtest/regtest.c b/reactos/apps/tests/regtest/regtest.c index c3d97a1f459..abe605620f6 100644 --- a/reactos/apps/tests/regtest/regtest.c +++ b/reactos/apps/tests/regtest/regtest.c @@ -46,6 +46,7 @@ void do_enumeratekey(PWSTR Name) dprintf("\n"); } } + NtClose(hKey1); } void test1(void) @@ -322,12 +323,13 @@ void test3(void) RtlInitUnicodeString(&KeyName, L"\\Registry\\Machine\\Software\\test3reactos\\test3"); InitializeObjectAttributes(&ObjectAttributes, &KeyName, OBJ_CASE_INSENSITIVE , NULL, NULL); - Status = NtCreateKey ( &hKey1, KEY_ALL_ACCESS , &ObjectAttributes + Status = NtCreateKey ( &hKey, KEY_ALL_ACCESS , &ObjectAttributes ,0,NULL,REG_OPTION_NON_VOLATILE,NULL); dprintf("\t\t\t\t\tStatus=%x\n",Status); dprintf("NtOpenKey: "); Status=NtOpenKey( &hKey1, MAXIMUM_ALLOWED, &ObjectAttributes); dprintf("\t\tStatus=%x\n",Status); + NtClose(hKey); dprintf(" ...\\testNonVolatile :"); RtlInitUnicodeString(&KeyName, L"TestNonVolatile"); InitializeObjectAttributes(&ObjectAttributes, &KeyName, OBJ_CASE_INSENSITIVE