Author: fireball
Date: Sat Apr 2 09:20:16 2011
New Revision: 51223
URL:
http://svn.reactos.org/svn/reactos?rev=51223&view=rev
Log:
[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.
Modified:
trunk/reactos/dll/ntdll/ldr/ldrinit.c
Modified: trunk/reactos/dll/ntdll/ldr/ldrinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/ldrinit.c?re…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/ldrinit.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/ldrinit.c [iso-8859-1] Sat Apr 2 09:20:16 2011
@@ -786,8 +786,8 @@
PVOID *TlsVector;
/* Check if we have any entries */
- if (LdrpNumberOfTlsEntries)
- return 0;
+ if (!LdrpNumberOfTlsEntries)
+ return STATUS_SUCCESS;
/* Allocate the vector array */
TlsVector = RtlAllocateHeap(RtlGetProcessHeap(),