Fixed crash on 32-bit builds caused by calling convention mismatch

This commit is contained in:
Benjamin Höglinger-Stelzer
2019-03-27 14:48:06 +01:00
parent 47c04ecf40
commit d315abe867
2 changed files with 4 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ extern "C" {
typedef
_Function_class_(EVT_VIGEM_TARGET_ADD_RESULT)
VOID
VOID CALLBACK
EVT_VIGEM_TARGET_ADD_RESULT(
PVIGEM_CLIENT Client,
PVIGEM_TARGET Target,
@@ -105,7 +105,7 @@ extern "C" {
typedef
_Function_class_(EVT_VIGEM_X360_NOTIFICATION)
VOID
VOID CALLBACK
EVT_VIGEM_X360_NOTIFICATION(
PVIGEM_CLIENT Client,
PVIGEM_TARGET Target,

View File

@@ -487,7 +487,7 @@ VIGEM_ERROR vigem_target_x360_register_notification(
return;
}
reinterpret_cast<PFN_VIGEM_X360_NOTIFICATION>(_Target->Notification)(
PFN_VIGEM_X360_NOTIFICATION(_Target->Notification)(
_Client,
_Target,
notify.LargeMotor,
@@ -563,7 +563,7 @@ VIGEM_ERROR vigem_target_ds4_register_notification(
return;
}
reinterpret_cast<PFN_VIGEM_DS4_NOTIFICATION>(_Target->Notification)(
PFN_VIGEM_DS4_NOTIFICATION(_Target->Notification)(
_Client,
_Target,
notify.Report.LargeMotor,