Alexandre Julliard : ntdll: Initialize the large address space before attaching dlls.

Alexandre Julliard julliard at winehq.org
Mon Nov 3 09:06:55 CST 2008


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Nov  3 13:23:27 2008 +0100

ntdll: Initialize the large address space before attaching dlls.

---

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

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 5d47b19..84dd18f 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -2419,12 +2419,12 @@ void WINAPI LdrInitializeThunk( ULONG unknown1, ULONG unknown2, ULONG unknown3,
     if ((status = fixup_imports( wm, load_path )) != STATUS_SUCCESS) goto error;
     if ((status = alloc_process_tls()) != STATUS_SUCCESS) goto error;
     if ((status = alloc_thread_tls()) != STATUS_SUCCESS) goto error;
+    if (nt->FileHeader.Characteristics & IMAGE_FILE_LARGE_ADDRESS_AWARE) VIRTUAL_UseLargeAddressSpace();
 
     status = wine_call_on_stack( attach_process_dlls, wm, NtCurrentTeb()->Tib.StackBase );
     if (status != STATUS_SUCCESS) goto error;
 
     virtual_clear_thread_stack();
-    if (nt->FileHeader.Characteristics & IMAGE_FILE_LARGE_ADDRESS_AWARE) VIRTUAL_UseLargeAddressSpace();
     return;
 
 error:




More information about the wine-cvs mailing list