Commit dbbd2161 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ntdll: Call DLL_PROCESS_DETACH if attaching failed.

parent ced19b42
......@@ -1073,6 +1073,7 @@ static NTSTATUS process_attach( WINE_MODREF *wm, LPVOID lpReserved )
wm->ldr.Flags |= LDR_PROCESS_ATTACHED;
else
{
MODULE_InitDLL( wm, DLL_PROCESS_DETACH, lpReserved );
/* point to the name so LdrInitializeThunk can print it */
last_failed_modref = wm;
WARN("Initialization of %s failed\n", debugstr_w(wm->ldr.BaseDllName.Buffer));
......
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