PAD: windows, fix crash on config when playing

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2020-12-12 22:58:05 +01:00 committed by lightningterror
parent 2c5b75a695
commit c4abe44e67
1 changed files with 3 additions and 0 deletions

View File

@ -1023,9 +1023,12 @@ DWORD WINAPI MaximizeWindowThreadProc(void* lpParameter)
void PADconfigure()
{
HWND tmp = hWnd;
PADclose();
ScopedCoreThreadPause paused_core;
Configure();
paused_core.AllowResume();
PADopen(tmp);
}
#ifdef _MSC_VER