Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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 |
(...skipping 26 matching lines...) Expand all Loading... | |
37 #endif | 37 #endif |
38 | 38 |
39 if (CPluginSettings::HasInstance()) | 39 if (CPluginSettings::HasInstance()) |
40 { | 40 { |
41 #ifdef ENABLE_DEBUG_SPLIT_FILE | 41 #ifdef ENABLE_DEBUG_SPLIT_FILE |
42 CPluginSettings* settings = CPluginSettings::GetInstance(); | 42 CPluginSettings* settings = CPluginSettings::GetInstance(); |
43 | 43 |
44 bool isWorkingThread = settings->IsWorkingThread(dwThreadId); | 44 bool isWorkingThread = settings->IsWorkingThread(dwThreadId); |
45 | 45 |
46 CString processor; | 46 CString processor; |
47 WCHAR tmp[10]; | 47 wchar_t tmp[10]; |
Wladimir Palant
2013/07/22 06:43:11
I would rather use wchar_t rather than WCHAR - tha
| |
48 _itow_s<10>(::GetCurrentProcessId(), tmp, 10); | 48 _itow_s(::GetCurrentProcessId(), tmp, 10); |
Wladimir Palant
2013/07/22 06:43:11
I think you can leave out the template parameter h
| |
49 if (isWorkingThread) | 49 if (isWorkingThread) |
50 processor = L"tab" + CString(tmp) + L"_thread"; | 50 processor = L"tab" + CString(tmp) + L"_thread"; |
51 else | 51 else |
52 processor = L"tab" + ::CString(tmp) + L"_ui"; | 52 processor = L"tab" + CString(tmp) + L"_ui"; |
Wladimir Palant
2013/07/22 06:43:11
CString() or ::CString()? Please choose one ;)
| |
53 #else | 53 #else |
54 if (dwProcessId == 0) | 54 if (dwProcessId == 0) |
55 { | 55 { |
56 dwProcessId = ::GetCurrentProcessId(); | 56 dwProcessId = ::GetCurrentProcessId(); |
57 } | 57 } |
58 if (dwThreadId == 0) | 58 if (dwThreadId == 0) |
59 { | 59 { |
60 dwThreadId = ::GetCurrentThreadId(); | 60 dwThreadId = ::GetCurrentThreadId(); |
61 } | 61 } |
62 | 62 |
(...skipping 174 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 |
LEFT | RIGHT |