From 1019387a8f6ccc087a113f138c5237146492a356 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 26 Jul 2018 21:40:50 +0300 Subject: fixes #1527 (Remove obsolete g_hMainThread and QueueUSerAPC from plugins) --- plugins/BasicHistory/src/BasicHistory.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'plugins/BasicHistory/src/BasicHistory.cpp') diff --git a/plugins/BasicHistory/src/BasicHistory.cpp b/plugins/BasicHistory/src/BasicHistory.cpp index a371fcdfa0..091d9b15d9 100644 --- a/plugins/BasicHistory/src/BasicHistory.cpp +++ b/plugins/BasicHistory/src/BasicHistory.cpp @@ -22,7 +22,6 @@ along with this program. If not, see . #define MS_HISTORY_EXECUTE_TASK "BasicHistory/ExecuteTask" HCURSOR hCurSplitNS, hCurSplitWE; -HANDLE g_hMainThread = nullptr; HANDLE *hEventIcons = nullptr; int iconsNum = 3; @@ -237,7 +236,6 @@ int ModulesLoaded(WPARAM, LPARAM) int CMPlugin::Load() { hTaskMainMenu = nullptr; - DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &g_hMainThread, 0, FALSE, DUPLICATE_SAME_ACCESS); hCurSplitNS = LoadCursor(nullptr, IDC_SIZENS); hCurSplitWE = LoadCursor(nullptr, IDC_SIZEWE); @@ -261,10 +259,6 @@ int CMPlugin::Load() int CMPlugin::Unload() { - if (g_hMainThread) - CloseHandle(g_hMainThread); - g_hMainThread = nullptr; - HistoryWindow::Deinit(); DestroyCursor(hCurSplitNS); -- cgit v1.2.3