diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-22 21:52:59 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-22 21:52:59 +0300 |
commit | eb6358318fc06c5d35f980a2dbd7e39b2748d4e5 (patch) | |
tree | 0d04cbbc43de001dbf9ca8b6ec599d9fdce4a34c /src | |
parent | 392d3457b9c029267614ae5365fb80e5db6e3555 (diff) |
patch for VLD integration
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/miranda.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mir_app/src/miranda.cpp b/src/mir_app/src/miranda.cpp index baf7bf989b..e0628ad7cd 100644 --- a/src/mir_app/src/miranda.cpp +++ b/src/mir_app/src/miranda.cpp @@ -25,6 +25,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h"
+#if defined(VLD_ENABLED)
+#include "msapi\vld.h"
+#endif
+
#pragma comment(lib, "version.lib")
int LoadDefaultModules(void);
@@ -97,6 +101,11 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID) g_iIconY = GetSystemMetrics(SM_CYICON);
g_iIconSX = GetSystemMetrics(SM_CXSMICON);
g_iIconSY = GetSystemMetrics(SM_CYSMICON);
+
+ #if defined(VLD_ENABLED)
+ VLDSetOptions(VLD_OPT_SKIP_HEAPFREE_LEAKS, -1, -1);
+ VLDSetReportOptions(VLD_OPT_REPORT_TO_FILE, L"C:\\temp\\vld.txt");
+ #endif
}
return TRUE;
}
|