• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision8304 (tree)
Time2019-10-15 01:13:29
Authorzmatsuo

Log Message

デバグ関数への切り替えに _CRTDBG_MAP_ALLOC を使うようにした

Change Summary

Incremental Difference

--- trunk/teraterm/common/dllutil.cpp (revision 8303)
+++ trunk/teraterm/common/dllutil.cpp (revision 8304)
@@ -29,17 +29,13 @@
2929 #include <windows.h>
3030 #include <tchar.h>
3131 #include <assert.h>
32+#if !defined(_CRTDBG_MAP_ALLOC)
33+#define _CRTDBG_MAP_ALLOC
34+#endif
3235 #include <crtdbg.h>
3336
3437 #include "dllutil.h"
3538
36-#ifdef _DEBUG
37-#define malloc(l) _malloc_dbg((l), _NORMAL_BLOCK, __FILE__, __LINE__)
38-#define free(p) _free_dbg((p), _NORMAL_BLOCK)
39-#define _strdup(s) _strdup_dbg((s), _NORMAL_BLOCK, __FILE__, __LINE__)
40-#define realloc(p, l) _realloc_dbg((p), (l), _NORMAL_BLOCK, __FILE__, __LINE__)
41-#endif
42-
4339 typedef struct {
4440 const TCHAR *dllName;
4541 DLLLoadFlag LoadFlag;
Show on old repository browser