mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Fix migrating never applied custom zonesets (#1427)
This commit is contained in:
parent
f3b3e3eded
commit
121be772df
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user