Bump cswinrt and ignore PowerToys dlls in verifyDepsJsonLibraryVersions.ps1 (#34297)

This commit is contained in:
Stefan Markovic
2024-08-14 18:07:43 +02:00
committed by GitHub
parent f56abb83c1
commit 67d99a8377
5 changed files with 15 additions and 7 deletions

View File

@@ -16,7 +16,9 @@ namespace std
size_t operator()(const GUID& Value) const
{
RPC_STATUS status = RPC_S_OK;
return ::UuidHash(&const_cast<GUID&>(Value), &status);
// Make a copy of the Value to avoid using const_cast to cast away cost - workaround C26492
GUID copy = Value;
return ::UuidHash(&copy, &status);
}
};
}