Commit 0a72ec1d authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Make sure we don't try to attach the main exe a second time.

parent f31a29b8
......@@ -4009,6 +4009,7 @@ void WINAPI LdrInitializeThunk( CONTEXT *context, void **entry, ULONG_PTR unknow
NtTerminateProcess( GetCurrentProcess(), status );
}
wm->ldr.LoadCount = -1;
wm->ldr.Flags |= LDR_PROCESS_ATTACHED; /* don't try to attach again */
if (wm->ldr.ActivationContext)
RtlActivateActivationContext( 0, wm->ldr.ActivationContext, &cookie );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment