mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[RTL] Fix RtlpGetRegistryHandle
This commit is contained in:
@@ -523,10 +523,13 @@ RtlpGetRegistryHandle(IN ULONG RelativeTo,
|
||||
if (!NT_SUCCESS(Status)) return Status;
|
||||
}
|
||||
|
||||
/* And now append the path */
|
||||
if (Path[0] == L'\\' && RelativeTo != RTL_REGISTRY_ABSOLUTE) Path++; // HACK!
|
||||
Status = RtlAppendUnicodeToString(&KeyName, Path);
|
||||
if (!NT_SUCCESS(Status)) return Status;
|
||||
if (Path != NULL)
|
||||
{
|
||||
/* And now append the path */
|
||||
if (Path[0] == L'\\' && RelativeTo != RTL_REGISTRY_ABSOLUTE) Path++; // HACK!
|
||||
Status = RtlAppendUnicodeToString(&KeyName, Path);
|
||||
if (!NT_SUCCESS(Status)) return Status;
|
||||
}
|
||||
|
||||
/* Initialize the object attributes */
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
|
||||
Reference in New Issue
Block a user