Odstranil sem pasti za razhroščevalnik.

This commit is contained in:
Simon Rozman 2013-02-18 11:44:51 +00:00
parent 88ac67178b
commit 11a0eb82bf
2 changed files with 2 additions and 8 deletions

View File

@ -22,6 +22,8 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpRes
switch (dwReason) { switch (dwReason) {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
//assert(0); // Attach debugger here, or press "Ignore"!
// Randomize! // Randomize!
srand((unsigned)time(NULL)); srand((unsigned)time(NULL));
@ -52,9 +54,6 @@ UINT MSITSCA_API EvaluateScheduledTasks(MSIHANDLE hInstall)
CString sValue; CString sValue;
assert(hRecordProg); assert(hRecordProg);
#ifdef ASSERT_TO_DEBUG
assert(0); // Attach debugger here, or press "Ignore"!
#endif
// Check and add the rollback enabled state. // Check and add the rollback enabled state.
uiResult = ::MsiGetProperty(hInstall, _T("RollbackDisabled"), sValue); uiResult = ::MsiGetProperty(hInstall, _T("RollbackDisabled"), sValue);
@ -238,10 +237,6 @@ UINT MSITSCA_API InstallScheduledTasks(MSIHANDLE hInstall)
BOOL bIsCoInitialized = SUCCEEDED(::CoInitialize(NULL)); BOOL bIsCoInitialized = SUCCEEDED(::CoInitialize(NULL));
CString sSequenceFilename; CString sSequenceFilename;
#ifdef ASSERT_TO_DEBUG
assert(0); // Attach debugger here, or press "Ignore"!
#endif
uiResult = ::MsiGetProperty(hInstall, _T("CustomActionData"), sSequenceFilename); uiResult = ::MsiGetProperty(hInstall, _T("CustomActionData"), sSequenceFilename);
if (uiResult == ERROR_SUCCESS) { if (uiResult == ERROR_SUCCESS) {
CMSITSCAOpList lstOperations; CMSITSCAOpList lstOperations;

View File

@ -19,7 +19,6 @@
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#define _WIN32_WINNT 0x0501 // Include Windows XP symbols #define _WIN32_WINNT 0x0501 // Include Windows XP symbols
#define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h #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 #ifdef _WINDLL
#define MSITSCA_DLL // This is a DLL #define MSITSCA_DLL // This is a DLL
#endif #endif