diff --git a/src/modules/fancyzones/lib/JsonHelpers.cpp b/src/modules/fancyzones/lib/JsonHelpers.cpp index f09a2d929d..603a79a106 100644 --- a/src/modules/fancyzones/lib/JsonHelpers.cpp +++ b/src/modules/fancyzones/lib/JsonHelpers.cpp @@ -186,6 +186,7 @@ namespace JSONHelpers bool FancyZonesData::RemoveDevicesByVirtualDesktopId(const std::wstring& virtualDesktopId) { + std::scoped_lock lock{ dataLock }; if (virtualDesktopId == DEFAULT_GUID) { return false;