mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
[Analyzers][CPP]Turn on warning 4456 (#22087)
This commit is contained in:
@@ -144,7 +144,7 @@ wstring GetChecksum(path filePath)
|
||||
}
|
||||
else
|
||||
{
|
||||
std::wstring result = L"CryptGetHashParam() failed. " + get_last_error_or_default(GetLastError());;
|
||||
result = L"CryptGetHashParam() failed. " + get_last_error_or_default(GetLastError());;
|
||||
}
|
||||
|
||||
CryptDestroyHash(hHash);
|
||||
|
||||
@@ -281,7 +281,7 @@ void ReportRegistry(const filesystem::path& tmpDir)
|
||||
else
|
||||
{
|
||||
DWORD data = 0;
|
||||
DWORD dataSize = sizeof(data);
|
||||
dataSize = sizeof(data);
|
||||
result = RegGetValueW(rootKey, subKey.c_str(), value.c_str(), flags, &type, &data, &dataSize);
|
||||
if (result == ERROR_SUCCESS)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user