From 189f6be24f11066a3c711b783cf98f79f703e3a5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 27 May 2019 16:21:17 +0300 Subject: as well as calls of GetVersionEx should be removed --- plugins/KeyboardNotify/src/main.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'plugins/KeyboardNotify/src/main.cpp') diff --git a/plugins/KeyboardNotify/src/main.cpp b/plugins/KeyboardNotify/src/main.cpp index adbe79029d..def163577f 100644 --- a/plugins/KeyboardNotify/src/main.cpp +++ b/plugins/KeyboardNotify/src/main.cpp @@ -723,19 +723,6 @@ void LoadSettings(void) } -void GetWindowsVersion(void) -{ - OSVERSIONINFOEX osvi = { sizeof(OSVERSIONINFOEX) }; - BOOL bOsVersionInfoEx = GetVersionEx((OSVERSIONINFO *)&osvi); - - if (!bOsVersionInfoEx) { - osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); - if (!GetVersionEx((OSVERSIONINFO *)&osvi)) - osvi.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS; - } -} - - void updateXstatusProto(PROTOCOL_INFO *protoInfo) { if (!ProtoServiceExists(protoInfo->szProto, PS_GETCUSTOMSTATUSEX)) @@ -913,7 +900,6 @@ static int ModulesLoaded(WPARAM, LPARAM) int CMPlugin::Load() { - GetWindowsVersion(); OpenKeyboardDevice(); HookEvent(ME_MC_ENABLED, OnMetaChanged); -- cgit v1.2.3