mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
Fix migrating never applied custom zonesets (#1427)
This commit is contained in:
@@ -626,6 +626,21 @@ namespace JSONHelpers
|
|||||||
{
|
{
|
||||||
it->second.uuid = uuid = it->first;
|
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)
|
switch (zoneSetData.type)
|
||||||
{
|
{
|
||||||
case CustomLayoutType::Grid: {
|
case CustomLayoutType::Grid: {
|
||||||
|
|||||||
Reference in New Issue
Block a user