From 55b1ef6cfa14e671ea829abd271470acff9ab6c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Mon, 11 May 2020 21:20:39 +0200 Subject: [PATCH] Fixed DS4 crash --- sys/Ds4Pdo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/Ds4Pdo.cpp b/sys/Ds4Pdo.cpp index f4523b7..ed32971 100644 --- a/sys/Ds4Pdo.cpp +++ b/sys/Ds4Pdo.cpp @@ -1105,7 +1105,7 @@ VOID ViGEm::Bus::Targets::EmulationTargetDS4::PendingUsbRequestsTimerFunc( _In_ WDFTIMER Timer ) { - auto ctx = reinterpret_cast(Core::EmulationTargetPdoGetContext(WdfTimerGetParentObject(Timer))); + auto ctx = reinterpret_cast(Core::EmulationTargetPdoGetContext(WdfTimerGetParentObject(Timer))->Target); WDFREQUEST usbRequest; PIRP pendingIrp;