Secure acces from multiple threads to JSONHelpers (add missing lock) (#1375)

This commit is contained in:
vldmr11080 2020-02-27 09:52:14 +01:00 committed by GitHub
parent 5c708b43c2
commit 66892aea60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,6 +186,7 @@ namespace JSONHelpers
bool FancyZonesData::RemoveDevicesByVirtualDesktopId(const std::wstring& virtualDesktopId)
{
std::scoped_lock lock{ dataLock };
if (virtualDesktopId == DEFAULT_GUID)
{
return false;