| OLD | NEW |
| 1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
| 2 | 2 |
| 3 #include "PluginDebug.h" | 3 #include "PluginDebug.h" |
| 4 #include "PluginMutex.h" | 4 #include "PluginMutex.h" |
| 5 #include "PluginSettings.h" | 5 #include "PluginSettings.h" |
| 6 | 6 |
| 7 | 7 |
| 8 class CPluginDebugLock : public CPluginMutex | 8 class CPluginDebugLock : public CPluginMutex |
| 9 { | 9 { |
| 10 | 10 |
| 11 private: | 11 private: |
| 12 | 12 |
| 13 static CComAutoCriticalSection s_criticalSectionDebugLock; | 13 static CComAutoCriticalSection s_criticalSectionDebugLock; |
| 14 | 14 |
| 15 public: | 15 public: |
| 16 | 16 |
| 17 CPluginDebugLock() : CPluginMutex("DebugFile", PLUGIN_ERROR_MUTEX_DEBUG_FILE) | 17 CPluginDebugLock() : CPluginMutex(L"DebugFile", PLUGIN_ERROR_MUTEX_DEBUG_FILE) |
| 18 { | 18 { |
| 19 s_criticalSectionDebugLock.Lock(); | 19 s_criticalSectionDebugLock.Lock(); |
| 20 } | 20 } |
| 21 | 21 |
| 22 ~CPluginDebugLock() | 22 ~CPluginDebugLock() |
| 23 { | 23 { |
| 24 s_criticalSectionDebugLock.Unlock(); | 24 s_criticalSectionDebugLock.Unlock(); |
| 25 } | 25 } |
| 26 }; | 26 }; |
| 27 | 27 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 srcTrunc = src.Left(67) + L"..." + src.Right(30); | 237 srcTrunc = src.Left(67) + L"..." + src.Right(30); |
| 238 } | 238 } |
| 239 | 239 |
| 240 CString blocking; | 240 CString blocking; |
| 241 blocking.Format(L"Ignored %-12s %s %s", type, domain.IsEmpty()? L"-" : doma
in, srcTrunc); | 241 blocking.Format(L"Ignored %-12s %s %s", type, domain.IsEmpty()? L"-" : doma
in, srcTrunc); |
| 242 | 242 |
| 243 DebugResult(blocking); | 243 DebugResult(blocking); |
| 244 } | 244 } |
| 245 | 245 |
| 246 #endif // ENABLE_DEBUG_RESULT_IGNORED | 246 #endif // ENABLE_DEBUG_RESULT_IGNORED |
| OLD | NEW |