diff --git a/reactos/dll/ntdll/ldr/ldrinit.c b/reactos/dll/ntdll/ldr/ldrinit.c index 33b0e86a01d..225068865c3 100644 --- a/reactos/dll/ntdll/ldr/ldrinit.c +++ b/reactos/dll/ntdll/ldr/ldrinit.c @@ -206,7 +206,7 @@ LdrQueryImageFileKeyOption(IN HKEY KeyHandle, KeyValueInformation = RtlAllocateHeap(RtlGetProcessHeap(), 0, KeyInfoSize); - if (KeyInfo == NULL) + if (KeyValueInformation == NULL) { /* Give up this time */ Status = STATUS_NO_MEMORY;