ntdll: Initialize the Length field of PEB->LdrData.

This commit is contained in:
Bernhard Loos 2011-08-22 10:40:15 +02:00 committed by Alexandre Julliard
parent 43dfbfd87d
commit b8629f55f1
1 changed files with 1 additions and 0 deletions

View File

@ -225,6 +225,7 @@ HANDLE thread_init(void)
params.CurrentDirectory.DosPath.Buffer = current_dir;
params.CurrentDirectory.DosPath.MaximumLength = sizeof(current_dir);
params.wShowWindow = 1; /* SW_SHOWNORMAL */
ldr.Length = sizeof(ldr);
RtlInitializeBitMap( &tls_bitmap, peb->TlsBitmapBits, sizeof(peb->TlsBitmapBits) * 8 );
RtlInitializeBitMap( &tls_expansion_bitmap, peb->TlsExpansionBitmapBits,
sizeof(peb->TlsExpansionBitmapBits) * 8 );