From 11a0eb82bfce94ccc021c709031c1a12f8e092ab Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 18 Feb 2013 11:44:51 +0000 Subject: [PATCH] =?UTF-8?q?Odstranil=20sem=20pasti=20za=20razhro=C5=A1?= =?UTF-8?q?=C4=8Devalnik.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MSICALib/MSITSCA.cpp | 9 ++------- MSICALib/StdAfx.h | 1 - 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/MSICALib/MSITSCA.cpp b/MSICALib/MSITSCA.cpp index 3720c2d..bafb10c 100644 --- a/MSICALib/MSITSCA.cpp +++ b/MSICALib/MSITSCA.cpp @@ -22,6 +22,8 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpRes switch (dwReason) { case DLL_PROCESS_ATTACH: + //assert(0); // Attach debugger here, or press "Ignore"! + // Randomize! srand((unsigned)time(NULL)); @@ -52,9 +54,6 @@ UINT MSITSCA_API EvaluateScheduledTasks(MSIHANDLE hInstall) CString sValue; assert(hRecordProg); -#ifdef ASSERT_TO_DEBUG - assert(0); // Attach debugger here, or press "Ignore"! -#endif // Check and add the rollback enabled state. uiResult = ::MsiGetProperty(hInstall, _T("RollbackDisabled"), sValue); @@ -238,10 +237,6 @@ UINT MSITSCA_API InstallScheduledTasks(MSIHANDLE hInstall) BOOL bIsCoInitialized = SUCCEEDED(::CoInitialize(NULL)); CString sSequenceFilename; -#ifdef ASSERT_TO_DEBUG - assert(0); // Attach debugger here, or press "Ignore"! -#endif - uiResult = ::MsiGetProperty(hInstall, _T("CustomActionData"), sSequenceFilename); if (uiResult == ERROR_SUCCESS) { CMSITSCAOpList lstOperations; diff --git a/MSICALib/StdAfx.h b/MSICALib/StdAfx.h index 7c90653..134ef21 100644 --- a/MSICALib/StdAfx.h +++ b/MSICALib/StdAfx.h @@ -19,7 +19,6 @@ #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #define _WIN32_WINNT 0x0501 // Include Windows XP symbols #define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h -//#define ASSERT_TO_DEBUG // Enable false asserts to provide opportunity to attach debuger #ifdef _WINDLL #define MSITSCA_DLL // This is a DLL #endif