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/ShellExt/src/shlcom.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/ShellExt') diff --git a/plugins/ShellExt/src/shlcom.cpp b/plugins/ShellExt/src/shlcom.cpp index 9307ddf530..608b35fd86 100644 --- a/plugins/ShellExt/src/shlcom.cpp +++ b/plugins/ShellExt/src/shlcom.cpp @@ -128,9 +128,8 @@ void NTAPI MainThreadIssueTransfer(ULONG_PTR param) SetEvent(p->hEvent); } -void __cdecl IssueTransferThread(void *param) +void __cdecl IssueTransferThread(THeaderIPC *pipch) { - THeaderIPC *pipch = (THeaderIPC *)param; HANDLE hMainThread = HANDLE(pipch->Param); char szBuf[MAX_PATH]; @@ -377,12 +376,12 @@ void __stdcall ipcService(ULONG_PTR) memcpy(cloned, pMMT, IPC_PACKET_SIZE); ipcFixupAddresses(cloned); DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &cloned->Param, THREAD_SET_CONTEXT, false, 0); - mir_forkthread(&IssueTransferThread, cloned); + mir_forkThread(&IssueTransferThread, cloned); goto Reply; } // the request was to clear the MRU entries, we have no return data if (*bits & REQUEST_CLEARMRU) { - mir_forkthread(&ClearMRUThread, nullptr); + mir_forkthread(&ClearMRUThread); goto Reply; } // the IPC header may have pointers that need to be translated -- cgit v1.2.3