From a694d0b79545df482e980e8f11d2d3096fc9f7ae Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Wed, 21 Sep 2011 19:37:15 +0000 Subject: [PATCH] [NTDLL] Fix broken if condition svn path=/trunk/; revision=53793 --- reactos/dll/ntdll/ldr/ldrinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;