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

Alexandre Julliard julliard at winehq.org
Mon Aug 22 13:29:15 CDT 2011


Module: wine
Branch: master
Commit: b8629f55f1e5ca827b7708283652d9288b9be288
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b8629f55f1e5ca827b7708283652d9288b9be288

Author: Bernhard Loos <bernhardloos at googlemail.com>
Date:   Mon Aug 22 10:40:15 2011 +0200

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

---

 dlls/ntdll/thread.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index bd6a00c..e328c5f 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 );




More information about the wine-cvs mailing list