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

@@ -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,