mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
init StaticUnicodeString
svn path=/trunk/; revision=14224
This commit is contained in:
@@ -186,9 +186,14 @@ LdrpInitializeTlsForThread(VOID)
|
||||
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 @@ LdrpInitializeTlsForThread(VOID)
|
||||
}
|
||||
|
||||
TlsData = (PVOID)TlsPointers + LdrpTlsCount * sizeof(PVOID);
|
||||
NtCurrentTeb()->ThreadLocalStoragePointer = TlsPointers;
|
||||
Teb->ThreadLocalStoragePointer = TlsPointers;
|
||||
|
||||
TlsInfo = LdrpTlsArray;
|
||||
for (i = 0; i < LdrpTlsCount; i++, TlsInfo++)
|
||||
|
||||
Reference in New Issue
Block a user