mirror of
https://github.com/reactos/reactos.git
synced 2025-01-22 19:43:55 +08:00
[NTOS:CM] Correctly interpret RtlCreateUnicodeString return value. CORE-14271
This commit is contained in:
parent
4e697fee2c
commit
6e750d189a
@ -872,6 +872,8 @@ CmpInitializeSystemHive(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
UNICODE_STRING KeyName;
|
||||
PCMHIVE SystemHive = NULL;
|
||||
PSECURITY_DESCRIPTOR SecurityDescriptor;
|
||||
BOOLEAN Success;
|
||||
|
||||
PAGED_CODE();
|
||||
|
||||
/* Setup the ansi string */
|
||||
@ -918,8 +920,9 @@ CmpInitializeSystemHive(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
}
|
||||
|
||||
/* Set the hive filename */
|
||||
Status = RtlCreateUnicodeString(&SystemHive->FileFullPath, L"\\SystemRoot\\System32\\Config\\SYSTEM");
|
||||
if (!NT_SUCCESS(Status))
|
||||
Success = RtlCreateUnicodeString(&SystemHive->FileFullPath,
|
||||
L"\\SystemRoot\\System32\\Config\\SYSTEM");
|
||||
if (!Success)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user