[RTL]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 18 Dec 2012 15:00:45 +0000 (15:00 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 18 Dec 2012 15:00:45 +0000 (15:00 +0000)
Reapply a fix, that got reverted accidentally in r57938

svn path=/trunk/; revision=57943

reactos/lib/rtl/registry.c

index 1262499..00e3eea 100644 (file)
@@ -834,7 +834,7 @@ RtlpNtEnumerateSubKey(IN HANDLE KeyHandle,
                             KeyInfo,
                             BufferLength,
                             &ReturnedLength);
-    if (NT_SUCCESS(Status))
+    if (NT_SUCCESS(Status) && (KeyInfo != NULL))
     {
         /* Check if the name fits */
         if (KeyInfo->NameLength <= SubKeyName->MaximumLength)