From b8629f55f1e5ca827b7708283652d9288b9be288 Mon Sep 17 00:00:00 2001 From: Bernhard Loos Date: Mon, 22 Aug 2011 10:40:15 +0200 Subject: [PATCH] ntdll: Initialize the Length field of PEB->LdrData. --- dlls/ntdll/thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c index bd6a00cd562..e328c5f590a 100644 --- a/dlls/ntdll/thread.c +++ b/dlls/ntdll/thread.c @@ -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 );