ntdll: Initialize the large address space before attaching dlls.
This commit is contained in:
parent
1865c47ff8
commit
4ee2d9d8eb
|
@ -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 = fixup_imports( wm, load_path )) != STATUS_SUCCESS) goto error;
|
||||||
if ((status = alloc_process_tls()) != STATUS_SUCCESS) goto error;
|
if ((status = alloc_process_tls()) != STATUS_SUCCESS) goto error;
|
||||||
if ((status = alloc_thread_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 );
|
status = wine_call_on_stack( attach_process_dlls, wm, NtCurrentTeb()->Tib.StackBase );
|
||||||
if (status != STATUS_SUCCESS) goto error;
|
if (status != STATUS_SUCCESS) goto error;
|
||||||
|
|
||||||
virtual_clear_thread_stack();
|
virtual_clear_thread_stack();
|
||||||
if (nt->FileHeader.Characteristics & IMAGE_FILE_LARGE_ADDRESS_AWARE) VIRTUAL_UseLargeAddressSpace();
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
|
Loading…
Reference in New Issue