mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[Analyzers][CPP] turn on Warning 4706 (#21434)
* Analyzers CPP Changing the warning level from 3 to 4. change some project files to make them use the warning config in cpp props file. * Analyzers C++ turn on warning 4706 Change Cpp.Build.props file to enable 4706 fix BugReportTool code to get rid of 4706 * disable 4706 for external code
This commit is contained in:
@@ -106,7 +106,8 @@ wstring GetChecksum(path filePath)
|
||||
return L"CryptCreateHash() failed. " + get_last_error_or_default(GetLastError());
|
||||
}
|
||||
|
||||
while (bResult = ReadFile(hFile, rgbFile, bufferSize, &cbRead, NULL))
|
||||
bResult = ReadFile(hFile, rgbFile, bufferSize, &cbRead, NULL);
|
||||
while (bResult)
|
||||
{
|
||||
if (0 == cbRead)
|
||||
{
|
||||
@@ -120,6 +121,8 @@ wstring GetChecksum(path filePath)
|
||||
CloseHandle(hFile);
|
||||
return L"CryptHashData() failed. " + get_last_error_or_default(GetLastError());;
|
||||
}
|
||||
|
||||
bResult = ReadFile(hFile, rgbFile, bufferSize, &cbRead, NULL);
|
||||
}
|
||||
|
||||
if (!bResult)
|
||||
|
||||
Reference in New Issue
Block a user