mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
bugs corrected
svn path=/trunk/; revision=1425
This commit is contained in:
parent
fb51b0f647
commit
575c0c896a
1 changed files with 3 additions and 1 deletions
|
@ -46,6 +46,7 @@ void do_enumeratekey(PWSTR Name)
|
||||||
dprintf("\n");
|
dprintf("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
NtClose(hKey1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test1(void)
|
void test1(void)
|
||||||
|
@ -322,12 +323,13 @@ void test3(void)
|
||||||
RtlInitUnicodeString(&KeyName, L"\\Registry\\Machine\\Software\\test3reactos\\test3");
|
RtlInitUnicodeString(&KeyName, L"\\Registry\\Machine\\Software\\test3reactos\\test3");
|
||||||
InitializeObjectAttributes(&ObjectAttributes, &KeyName, OBJ_CASE_INSENSITIVE
|
InitializeObjectAttributes(&ObjectAttributes, &KeyName, OBJ_CASE_INSENSITIVE
|
||||||
, NULL, NULL);
|
, NULL, NULL);
|
||||||
Status = NtCreateKey ( &hKey1, KEY_ALL_ACCESS , &ObjectAttributes
|
Status = NtCreateKey ( &hKey, KEY_ALL_ACCESS , &ObjectAttributes
|
||||||
,0,NULL,REG_OPTION_NON_VOLATILE,NULL);
|
,0,NULL,REG_OPTION_NON_VOLATILE,NULL);
|
||||||
dprintf("\t\t\t\t\tStatus=%x\n",Status);
|
dprintf("\t\t\t\t\tStatus=%x\n",Status);
|
||||||
dprintf("NtOpenKey: ");
|
dprintf("NtOpenKey: ");
|
||||||
Status=NtOpenKey( &hKey1, MAXIMUM_ALLOWED, &ObjectAttributes);
|
Status=NtOpenKey( &hKey1, MAXIMUM_ALLOWED, &ObjectAttributes);
|
||||||
dprintf("\t\tStatus=%x\n",Status);
|
dprintf("\t\tStatus=%x\n",Status);
|
||||||
|
NtClose(hKey);
|
||||||
dprintf(" ...\\testNonVolatile :");
|
dprintf(" ...\\testNonVolatile :");
|
||||||
RtlInitUnicodeString(&KeyName, L"TestNonVolatile");
|
RtlInitUnicodeString(&KeyName, L"TestNonVolatile");
|
||||||
InitializeObjectAttributes(&ObjectAttributes, &KeyName, OBJ_CASE_INSENSITIVE
|
InitializeObjectAttributes(&ObjectAttributes, &KeyName, OBJ_CASE_INSENSITIVE
|
||||||
|
|
Loading…
Reference in a new issue