From 913cb296b4ea4e4434242e2f670d12ec88e94431 Mon Sep 17 00:00:00 2001 From: Gauvain 'GovanifY' Roussel-Tarbouriech Date: Sat, 12 Dec 2020 23:37:05 +0100 Subject: [PATCH] PAD: windows: fix error message when uninit --- pcsx2/PAD/Windows/PAD.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2/PAD/Windows/PAD.cpp b/pcsx2/PAD/Windows/PAD.cpp index 36451925b4..1f215bdfda 100644 --- a/pcsx2/PAD/Windows/PAD.cpp +++ b/pcsx2/PAD/Windows/PAD.cpp @@ -1028,7 +1028,8 @@ void PADconfigure() ScopedCoreThreadPause paused_core; Configure(); paused_core.AllowResume(); - PADopen(tmp); + if(tmp != nullptr) + PADopen(tmp); } #ifdef _MSC_VER