From 093e19aae6631f2f28b2799912fad0997fe305a4 Mon Sep 17 00:00:00 2001 From: Gauvain 'GovanifY' Roussel-Tarbouriech Date: Sat, 12 Dec 2020 20:18:31 +0100 Subject: [PATCH] PAD: windows: fix RTL_CRITICAL_SECTION nullptr --- pcsx2/PAD/Windows/PAD.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pcsx2/PAD/Windows/PAD.cpp b/pcsx2/PAD/Windows/PAD.cpp index 30a0a004b2..4451accc8e 100644 --- a/pcsx2/PAD/Windows/PAD.cpp +++ b/pcsx2/PAD/Windows/PAD.cpp @@ -63,12 +63,7 @@ WndProcEater hWndButtonProc; // Keeps the various sources for Update polling (PADpoll, PADupdate, etc) from wreaking // havoc on each other... -#ifdef __linux__ static std::mutex updateLock; -#else -CRITICAL_SECTION updateLock; -#endif - // Used to toggle mouse listening. u8 miceEnabled; @@ -521,11 +516,7 @@ void Update(unsigned int port, unsigned int slot) } // Lock prior to timecheck code to avoid pesky race conditions. -#ifdef __linux__ std::lock_guard lock(updateLock); -#else - EnterScopedSection padlock(updateLock); -#endif static unsigned int LastCheck = 0; unsigned int t = timeGetTime();