From: Timo Kreuzer Date: Tue, 18 Dec 2012 15:00:45 +0000 (+0000) Subject: [RTL] X-Git-Tag: backups/ros-csrss@60644~104^2~89 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=2a61a8dcec1f01359bff1ecfba6acc9a721e84ca [RTL] Reapply a fix, that got reverted accidentally in r57938 svn path=/trunk/; revision=57943 --- diff --git a/reactos/lib/rtl/registry.c b/reactos/lib/rtl/registry.c index 1262499047d..00e3eea5f73 100644 --- a/reactos/lib/rtl/registry.c +++ b/reactos/lib/rtl/registry.c @@ -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)