mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Secure acces from multiple threads to JSONHelpers (add missing lock) (#1375)
This commit is contained in:
parent
5c708b43c2
commit
66892aea60
@ -186,6 +186,7 @@ namespace JSONHelpers
|
||||
|
||||
bool FancyZonesData::RemoveDevicesByVirtualDesktopId(const std::wstring& virtualDesktopId)
|
||||
{
|
||||
std::scoped_lock lock{ dataLock };
|
||||
if (virtualDesktopId == DEFAULT_GUID)
|
||||
{
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user