ntdll: Call DLL_PROCESS_DETACH if attaching failed.

This commit is contained in:
Nikolay Sivov 2009-11-25 10:18:07 +03:00 committed by Alexandre Julliard
parent ced19b425a
commit dbbd2161ab

View File

@ -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));