Author: tkreuzer
Date: Tue Dec 18 15:00:45 2012
New Revision: 57943
URL:
http://svn.reactos.org/svn/reactos?rev=57943&view=rev
Log:
[RTL]
Reapply a fix, that got reverted accidentally in r57938
Modified:
trunk/reactos/lib/rtl/registry.c
Modified: trunk/reactos/lib/rtl/registry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/registry.c?rev=579…
==============================================================================
--- trunk/reactos/lib/rtl/registry.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/registry.c [iso-8859-1] Tue Dec 18 15:00:45 2012
@@ -834,7 +834,7 @@
KeyInfo,
BufferLength,
&ReturnedLength);
- if (NT_SUCCESS(Status))
+ if (NT_SUCCESS(Status) && (KeyInfo != NULL))
{
/* Check if the name fits */
if (KeyInfo->NameLength <= SubKeyName->MaximumLength)