[Analyzers][CPP]Turn on warning 4456 (#22087)

This commit is contained in:
sosssego
2022-11-22 18:20:32 +00:00
committed by GitHub
parent d931937538
commit e5f171c836
8 changed files with 24 additions and 28 deletions

View File

@@ -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);

View File

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