projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e697fe
)
[NTOS:CM] Correctly interpret RtlCreateUnicodeString return value. CORE-14271
author
Thomas Faber
<thomas.faber@reactos.org>
Sun, 28 Jan 2018 12:42:13 +0000
(13:42 +0100)
committer
Thomas Faber
<thomas.faber@reactos.org>
Wed, 31 Jan 2018 09:37:56 +0000
(10:37 +0100)
ntoskrnl/config/cmsysini.c
patch
|
blob
|
history
diff --git
a/ntoskrnl/config/cmsysini.c
b/ntoskrnl/config/cmsysini.c
index
b956105
..
80bc55b
100644
(file)
--- a/
ntoskrnl/config/cmsysini.c
+++ b/
ntoskrnl/config/cmsysini.c
@@
-872,6
+872,8
@@
CmpInitializeSystemHive(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
UNICODE_STRING KeyName;
PCMHIVE SystemHive = NULL;
PSECURITY_DESCRIPTOR SecurityDescriptor;
UNICODE_STRING KeyName;
PCMHIVE SystemHive = NULL;
PSECURITY_DESCRIPTOR SecurityDescriptor;
+ BOOLEAN Success;
+
PAGED_CODE();
/* Setup the ansi string */
PAGED_CODE();
/* Setup the ansi string */
@@
-918,8
+920,9
@@
CmpInitializeSystemHive(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
}
/* Set the hive filename */
}
/* 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;
}
{
return FALSE;
}