mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
init StaticUnicodeString
svn path=/trunk/; revision=14224
This commit is contained in:
parent
de138c3bb4
commit
bab510233f
1 changed files with 7 additions and 2 deletions
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue