X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FRtsDllMain.c;h=592eb09d262702553cfc253d89b58d08d3fe80f8;hb=b46472feb93d93e6a8af1758b2a313a2fb9893fe;hp=250b63ea68e52889baa9dc9e129421734defddc6;hpb=006a18ea83799c0d4255071a2f8c08d3e9c7d84f;p=ghc-hetmet.git diff --git a/rts/RtsDllMain.c b/rts/RtsDllMain.c index 250b63e..592eb09 100644 --- a/rts/RtsDllMain.c +++ b/rts/RtsDllMain.c @@ -9,6 +9,7 @@ #include "PosixSource.h" #include "Rts.h" #include "RtsAPI.h" +#include "RtsDllMain.h" #ifdef HAVE_WINDOWS_H #include @@ -18,9 +19,9 @@ #if defined(__PIC__) && defined(mingw32_TARGET_OS) BOOL WINAPI -DllMain ( HINSTANCE hInstance +DllMain ( HINSTANCE hInstance STG_UNUSED , DWORD reason - , LPVOID reserved + , LPVOID reserved STG_UNUSED ) { /* @@ -30,7 +31,11 @@ DllMain ( HINSTANCE hInstance * you pass to the RTS. */ switch (reason) { - case DLL_PROCESS_DETACH: shutdownHaskell(); + + // shutdownHaskelAndExit() is already being called, + // so I don't think we need this. BL 2009/11/17 + + //case DLL_PROCESS_DETACH: shutdownHaskell(); } return TRUE; }