Skip to content

Commit

Permalink
Fix migrating never applied custom zonesets (#1427)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansjfw committed Mar 3, 2020
1 parent f3b3e3e commit 121be77
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/modules/fancyzones/lib/JsonHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,21 @@ namespace JSONHelpers
{
it->second.uuid = uuid = it->first;
}
else
{
GUID guid;
auto result = CoCreateGuid(&guid);
if (result != S_OK)
{
return;
}
wil::unique_cotaskmem_string guidString;
if (SUCCEEDED_LOG(StringFromCLSID(guid, &guidString)))
{
it->second.uuid = uuid = guidString.get();
}
}

switch (zoneSetData.type)
{
case CustomLayoutType::Grid: {
Expand Down

0 comments on commit 121be77

Please sign in to comment.