From 0204a6b41c833b4767b39935e2e46a9322db3e8d Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Mon, 3 Jan 2022 19:06:32 +0200 Subject: [PATCH] Fixed prototype of `CInputSwitchControl::Init` hook as suggested in https://github.com/valinet/ExplorerPatcher/commit/5b4bd07dff207d3834b206ba4030ff2de657d01d#r62018175 (thanks @Simplestas) --- ExplorerPatcher/dllmain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 72644d6..0048028 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -5550,10 +5550,10 @@ interface IInputSwitchControl CONST_VTBL struct IInputSwitchControlVtbl* lpVtbl; }; -HRESULT(*CInputSwitchControl_InitFunc)(IInputSwitchControl*, unsigned int, INT64); -HRESULT CInputSwitchControl_InitHook(IInputSwitchControl* _this, unsigned int dwOriginalIMEStyle, INT64 a3) +HRESULT(*CInputSwitchControl_InitFunc)(IInputSwitchControl*, unsigned int); +HRESULT CInputSwitchControl_InitHook(IInputSwitchControl* _this, unsigned int dwOriginalIMEStyle) { - return CInputSwitchControl_InitFunc(_this, dwIMEStyle ? dwIMEStyle : dwOriginalIMEStyle, a3); + return CInputSwitchControl_InitFunc(_this, dwIMEStyle ? dwIMEStyle : dwOriginalIMEStyle); } HRESULT explorer_CoCreateInstanceHook(