From 1d045ebeb326c1fbf5bead70d8ca083ce16fe908 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Sat, 2 Apr 2011 09:20:16 +0000 Subject: [PATCH] [NTDLL] - Fix a typo which led to incorrect logic of TLS allocation. This repairs those installers broken by r51051. See issue #6009 for more details. svn path=/trunk/; revision=51223 --- reactos/dll/ntdll/ldr/ldrinit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/ntdll/ldr/ldrinit.c b/reactos/dll/ntdll/ldr/ldrinit.c index cccaa4ee4f3..5913304361a 100644 --- a/reactos/dll/ntdll/ldr/ldrinit.c +++ b/reactos/dll/ntdll/ldr/ldrinit.c @@ -786,8 +786,8 @@ LdrpAllocateTls(VOID) PVOID *TlsVector; /* Check if we have any entries */ - if (LdrpNumberOfTlsEntries) - return 0; + if (!LdrpNumberOfTlsEntries) + return STATUS_SUCCESS; /* Allocate the vector array */ TlsVector = RtlAllocateHeap(RtlGetProcessHeap(),