[USER32] ForceResetUserApiHook is WINAPI, not FASTCALL. CORE-14450

Fixes stack pointer corruption when using Windows's uxtheme.dll.
This commit is contained in:
Thomas Faber 2018-03-09 09:06:08 +01:00
parent af9960ca99
commit c7c36702d2
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
2 changed files with 2 additions and 2 deletions

View file

@ -229,7 +229,7 @@ typedef BOOL (WINAPI *ADJUSTWINDOWRECTEX)(LPRECT,DWORD,BOOL,DWORD);
typedef int (WINAPI *GETSYSTEMMETRICS)(int);
typedef BOOL (WINAPI *SYSTEMPARAMETERSINFOA)(UINT,UINT,PVOID,UINT);
typedef BOOL (WINAPI *SYSTEMPARAMETERSINFOW)(UINT,UINT,PVOID,UINT);
typedef BOOL (__fastcall *FORCERESETUSERAPIHOOK)(HINSTANCE);
typedef BOOL (WINAPI *FORCERESETUSERAPIHOOK)(HINSTANCE);
typedef BOOL (WINAPI *DRAWFRAMECONTROL)(HDC,LPRECT,UINT,UINT);
typedef BOOL (WINAPI *DRAWCAPTION)(HWND,HDC,LPCRECT,UINT);
typedef BOOL (WINAPI *MDIREDRAWFRAME)(HWND,DWORD);

View file

@ -113,7 +113,7 @@ BeginIfHookedUserApiHook(VOID)
}
BOOL
FASTCALL
WINAPI
ForceResetUserApiHook(HINSTANCE hInstance)
{
if ( ghmodUserApiHook == hInstance &&