mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
FancyZones: fix possible crash in GetWorkAreasByDesktopId (#4380)
This commit is contained in:
@@ -34,7 +34,8 @@ const std::unordered_map<HMONITOR, winrt::com_ptr<IZoneWindow>>& MonitorWorkArea
|
||||
{
|
||||
return workAreaMap[desktopId];
|
||||
}
|
||||
return {};
|
||||
static const std::unordered_map<HMONITOR, winrt::com_ptr<IZoneWindow>> empty;
|
||||
return empty;
|
||||
}
|
||||
|
||||
std::vector<winrt::com_ptr<IZoneWindow>> MonitorWorkAreaHandler::GetAllWorkAreas()
|
||||
|
||||
Reference in New Issue
Block a user