From 3ad2582c4a4a6378f294f9256ecbcbdf0ae88e3a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 3 May 2018 16:02:14 +0200 Subject: mir_forkThread - stronger typizatioin for thread function parameter --- plugins/KeyboardNotify/src/flash.cpp | 4 ++-- plugins/KeyboardNotify/src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/KeyboardNotify/src') diff --git a/plugins/KeyboardNotify/src/flash.cpp b/plugins/KeyboardNotify/src/flash.cpp index 2a47c528b7..b5da36a964 100644 --- a/plugins/KeyboardNotify/src/flash.cpp +++ b/plugins/KeyboardNotify/src/flash.cpp @@ -310,7 +310,7 @@ void testSequence(wchar_t *testStr) static FLASHING_SEQUENCE Test = {0}; Test = str2FS(testStr); - mir_forkthread(TestThread, (void*)&Test); + mir_forkthread(TestThread, &Test); } @@ -339,7 +339,7 @@ void previewFlashing(BOOL buttonState) return; bPreviewSemaphore = TRUE; - mir_forkthread(PreviewThread, nullptr); + mir_forkthread(PreviewThread); } diff --git a/plugins/KeyboardNotify/src/main.cpp b/plugins/KeyboardNotify/src/main.cpp index 305a817183..091fe7d903 100644 --- a/plugins/KeyboardNotify/src/main.cpp +++ b/plugins/KeyboardNotify/src/main.cpp @@ -914,7 +914,7 @@ static int ModulesLoaded(WPARAM, LPARAM) mir_snwprintf(eventName, L"%s/ExitEvent", eventPrefix); hExitEvent = CreateEvent(nullptr, FALSE, FALSE, eventName); - hThread = mir_forkthread(FlashThreadFunction, nullptr); + hThread = mir_forkthread(FlashThreadFunction); HookEvent(ME_MC_ENABLED, OnMetaChanged); HookEvent(ME_DB_EVENT_ADDED, PluginMessageEventHook); -- cgit v1.2.3