mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 23:06:00 +00:00
[MKHIVE] Implement and use RegCloseKey().
This commit is contained in:
parent
4caf391324
commit
81d435a181
3 changed files with 21 additions and 0 deletions
|
@ -485,6 +485,18 @@ RegpCreateOrOpenKey(
|
|||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
LONG WINAPI
|
||||
RegCloseKey(
|
||||
IN HKEY hKey)
|
||||
{
|
||||
PMEMKEY Key = HKEY_TO_MEMKEY(hKey); // ParentKey
|
||||
|
||||
/* Free the object */
|
||||
free(Key);
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
LONG WINAPI
|
||||
RegCreateKeyW(
|
||||
IN HKEY hKey,
|
||||
|
@ -942,6 +954,8 @@ RegInitializeRegistry(
|
|||
CreateSymLink(L"Registry\\Machine\\SYSTEM\\CurrentControlSet",
|
||||
NULL, ControlSetKey);
|
||||
|
||||
RegCloseKey(ControlSetKey);
|
||||
|
||||
#if 0
|
||||
/* Link SECURITY to SAM */
|
||||
CmpLinkKeyToHive(L"\\Registry\\Machine\\Security\\SAM", L"\\Registry\\Machine\\SAM\\SAM");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue