From 6abfd412f64e7cdae2119d9c95be512126733c7d Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Sun, 1 Sep 2024 17:51:05 +0700 Subject: [PATCH] Fixed some function calls --- SimpleWindowSwitcher/sws_WindowHelpers.c | 2 +- SimpleWindowSwitcher/sws_WindowHelpers.h | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/SimpleWindowSwitcher/sws_WindowHelpers.c b/SimpleWindowSwitcher/sws_WindowHelpers.c index 69b09a9..5d3dfa6 100644 --- a/SimpleWindowSwitcher/sws_WindowHelpers.c +++ b/SimpleWindowSwitcher/sws_WindowHelpers.c @@ -600,7 +600,7 @@ BOOL CALLBACK sws_WindowHelpers_AddAltTabWindowsToTimeStampedHWNDList(HWND hWnd, { return FALSE; } - if (sws_WindowHelpers_IsAltTabWindow(hWnd, NULL)) + if (sws_WindowHelpers_IsAltTabWindow(hWnd)) { sws_tshwnd* tshWnd = malloc(sizeof(sws_tshwnd)); if (tshWnd) diff --git a/SimpleWindowSwitcher/sws_WindowHelpers.h b/SimpleWindowSwitcher/sws_WindowHelpers.h index 08b2c6b..582d8d7 100644 --- a/SimpleWindowSwitcher/sws_WindowHelpers.h +++ b/SimpleWindowSwitcher/sws_WindowHelpers.h @@ -72,21 +72,21 @@ typedef struct IAppResolver_8Vtbl BEGIN_INTERFACE HRESULT(STDMETHODCALLTYPE* QueryInterface)( - sws_IInputSwitchControl* This, + IAppResolver_8* This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void** ppvObject); ULONG(STDMETHODCALLTYPE* AddRef)( - sws_IInputSwitchControl* This); + IAppResolver_8* This); ULONG(STDMETHODCALLTYPE* Release)( - sws_IInputSwitchControl* This); + IAppResolver_8* This); - HRESULT (STDMETHODCALLTYPE* GetAppIDForShortcut)(); - HRESULT (STDMETHODCALLTYPE* GetAppIDForShortcutObject)(); - HRESULT (STDMETHODCALLTYPE* GetAppIDForWindow)(HWND hWnd, WCHAR** pszAppId, void* pUnknown1, void* pUnknown2, void* pUnknown3); - HRESULT (STDMETHODCALLTYPE* GetAppIDForProcess)(DWORD dwProcessId, WCHAR** pszAppId, void* pUnknown1, void* pUnknown2, void* pUnknown3); + HRESULT (STDMETHODCALLTYPE* GetAppIDForShortcut)(IAppResolver_8* This); + HRESULT (STDMETHODCALLTYPE* GetAppIDForShortcutObject)(IAppResolver_8* This); + HRESULT (STDMETHODCALLTYPE* GetAppIDForWindow)(IAppResolver_8* This, HWND hWnd, WCHAR** pszAppId, int* pUnknown1, int* pUnknown2, int* pUnknown3); + HRESULT (STDMETHODCALLTYPE* GetAppIDForProcess)(IAppResolver_8* This, DWORD dwProcessId, WCHAR** pszAppId, int* pUnknown1, int* pUnknown2, int* pUnknown3); END_INTERFACE } IAppResolver_8Vtbl;