init StaticUnicodeString
Modified: trunk/reactos/lib/ntdll/ldr/utils.c
_____
Modified: trunk/reactos/lib/ntdll/ldr/utils.c
--- trunk/reactos/lib/ntdll/ldr/utils.c 2005-03-20 15:54:22 UTC (rev
14223)
+++ trunk/reactos/lib/ntdll/ldr/utils.c 2005-03-20 17:22:24 UTC (rev
14224)
@@ -186,9 +186,14 @@
PTLS_DATA TlsInfo;
PVOID TlsData;
ULONG i;
-
+ PTEB Teb = NtCurrentTeb();
+
DPRINT("LdrpInitializeTlsForThread() called for %wZ\n",
&ExeModule->BaseDllName);
+ Teb->StaticUnicodeString.Length = 0;
+ Teb->StaticUnicodeString.MaximumLength =
sizeof(Teb->StaticUnicodeBuffer);
+ Teb->StaticUnicodeString.Buffer = Teb->StaticUnicodeBuffer;
+
if (LdrpTlsCount > 0)
{
TlsPointers = RtlAllocateHeap(RtlGetProcessHeap(),
@@ -201,7 +206,7 @@
}
TlsData = (PVOID)TlsPointers + LdrpTlsCount * sizeof(PVOID);
- NtCurrentTeb()->ThreadLocalStoragePointer = TlsPointers;
+ Teb->ThreadLocalStoragePointer = TlsPointers;
TlsInfo = LdrpTlsArray;
for (i = 0; i < LdrpTlsCount; i++, TlsInfo++)
Show replies by date