From 4dad461d26b40b492dbdcd61abe996c99f77c9d9 Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 16 Dec 2002 16:53:26 +0000 Subject: [PATCH] Debug compiles too git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1966 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/InstallOptions/InstallerOptions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Contrib/InstallOptions/InstallerOptions.cpp b/Contrib/InstallOptions/InstallerOptions.cpp index 01f8f5c8..8914cb66 100644 --- a/Contrib/InstallOptions/InstallerOptions.cpp +++ b/Contrib/InstallOptions/InstallerOptions.cpp @@ -1118,7 +1118,11 @@ extern "C" void __declspec(dllexport) show(HWND hwndParent, int string_size, showCfgDlg(); } +#ifdef DEBUG +extern "C" BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) +#else extern "C" BOOL WINAPI _DllMainCRTStartup(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) +#endif { m_hInstance=(HINSTANCE) hInst; if (ul_reason_for_call == DLL_THREAD_DETACH || ul_reason_for_call == DLL_PROCESS_DETACH)