Fix migrating never applied custom zonesets (#1427)

This commit is contained in:
stefansjfw 2020-03-03 21:48:22 +01:00 committed by GitHub
parent f3b3e3eded
commit 121be772df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: {