PAD: windows: fix error message when uninit

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2020-12-12 23:37:05 +01:00 committed by lightningterror
parent c4abe44e67
commit 913cb296b4
1 changed files with 2 additions and 1 deletions

View File

@ -1028,7 +1028,8 @@ void PADconfigure()
ScopedCoreThreadPause paused_core;
Configure();
paused_core.AllowResume();
PADopen(tmp);
if(tmp != nullptr)
PADopen(tmp);
}
#ifdef _MSC_VER