summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-06-12 12:41:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-06-12 12:41:03 +0300
commit59b505b37f358efa222abaf8aebe9cde4b81d49e (patch)
tree41304047bf2c0a7aa9fe9ae43ecd7cfab627c746
parent171e84714b11162f2897d44911f24a8bd3e36fc5 (diff)
minor code cleaning
-rw-r--r--plugins/Clist_modern/src/modern_awaymsg.cpp2
-rw-r--r--plugins/Clist_modern/src/modern_log.cpp10
2 files changed, 2 insertions, 10 deletions
diff --git a/plugins/Clist_modern/src/modern_awaymsg.cpp b/plugins/Clist_modern/src/modern_awaymsg.cpp
index cb2bd3a47c..e1c0d530e0 100644
--- a/plugins/Clist_modern/src/modern_awaymsg.cpp
+++ b/plugins/Clist_modern/src/modern_awaymsg.cpp
@@ -157,7 +157,7 @@ void InitAwayMsgModule()
void UninitAwayMsgModule()
{
- SetEvent(hamProcessEvent);
+ amWakeThread();
while (g_hAwayMsgThread)
SleepEx(50, TRUE);
diff --git a/plugins/Clist_modern/src/modern_log.cpp b/plugins/Clist_modern/src/modern_log.cpp
index 10e76ae573..06d9a7dbf9 100644
--- a/plugins/Clist_modern/src/modern_log.cpp
+++ b/plugins/Clist_modern/src/modern_log.cpp
@@ -32,15 +32,7 @@ void Log(const char *file, int line, const char *fmt, ...)
}
}
mir_snprintf(buf, "clist_modern:[%u - %u]: %s \t\t(%s Ln %d)\n", GetCurrentThreadId(), GetTickCount(), str, file_tmp, line);
-#ifdef _FILELOG_
- {
- FILE *fp;
- fp = fopen(_FILELOG_,"at");
- fprintf(fp,buf);
- fclose(fp);
- }
-#else
+ Netlib_Log(nullptr, buf);
OutputDebugStringA(buf);
-#endif
}