From 506ed6798e98e6487b08fbdd837d26e149b890c1 Mon Sep 17 00:00:00 2001
From: George Hazan <ghazan@miranda.im>
Date: Wed, 28 Apr 2021 20:46:20 +0300
Subject: grrm

---
 plugins/KeyboardNotify/src/main.cpp | 6 +++---
 plugins/KeyboardNotify/src/stdafx.h | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

(limited to 'plugins')

diff --git a/plugins/KeyboardNotify/src/main.cpp b/plugins/KeyboardNotify/src/main.cpp
index 6b7da1d96e..6bab75efb5 100644
--- a/plugins/KeyboardNotify/src/main.cpp
+++ b/plugins/KeyboardNotify/src/main.cpp
@@ -298,7 +298,7 @@ static void __cdecl FlashThreadFunction(void*)
 
 			// Wait for exit event
 			if (WaitForSingleObject(hExitEvent, nWaitDelay) == WAIT_OBJECT_0) {
-				g_plugin.debugLogA("%s: got exit signal1", g_plugin.getModule());
+				Netlib_Logf(0, "%s: got exit signal1", g_plugin.getModule());
 				return;
 			}
 		}
@@ -312,7 +312,7 @@ static void __cdecl FlashThreadFunction(void*)
 		Objects[0] = hFlashEvent;
 		Objects[1] = hExitEvent;
 		if (WaitForMultipleObjects(_countof(Objects), Objects, FALSE, INFINITE) != WAIT_OBJECT_0) {
-			g_plugin.debugLogA("%s: got exit signal2", g_plugin.getModule());
+			Netlib_Logf(0, "%s: got exit signal2", g_plugin.getModule());
 			return;
 		}
 
@@ -883,7 +883,7 @@ static int OnMetaChanged(WPARAM wParam, LPARAM)
 
 static int OnPreshutdown(WPARAM, LPARAM)
 {
-	g_plugin.debugLogA("%s: got ME_SYSTEM_PRESHUTDOWN", g_plugin.getModule());
+	Netlib_Logf(0, "%s: got ME_SYSTEM_PRESHUTDOWN", g_plugin.getModule());
 	SetEvent(hExitEvent);
 	return 0;
 }
diff --git a/plugins/KeyboardNotify/src/stdafx.h b/plugins/KeyboardNotify/src/stdafx.h
index 1f5a4346cf..f7e5497aec 100644
--- a/plugins/KeyboardNotify/src/stdafx.h
+++ b/plugins/KeyboardNotify/src/stdafx.h
@@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include <commctrl.h>
 #include <commdlg.h>
 #include <winioctl.h>
+#include <winsock.h>
 #include <Uxtheme.h>
 
 #include <newpluginapi.h>
@@ -40,6 +41,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include <m_langpack.h>
 #include <m_message.h>
 #include <m_metacontacts.h>
+#include <m_netlib.h>
 #include <m_options.h>
 #include <m_protosvc.h>
 #include <m_skin.h>
-- 
cgit v1.2.3