Nikolay Sivov : ntdll: Call DLL_PROCESS_DETACH if attaching failed.
Module: wine Branch: master Commit: dbbd2161ab516bef0c92d116c7a3cf7d061caa42 URL: http://source.winehq.org/git/wine.git/?a=commit;h=dbbd2161ab516bef0c92d116c7... Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Wed Nov 25 10:18:07 2009 +0300 ntdll: Call DLL_PROCESS_DETACH if attaching failed. --- dlls/ntdll/loader.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index 6ce51e7..e3d7adb 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -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));
participants (1)
-
Alexandre Julliard