diff --git a/Cpp.Build.props b/Cpp.Build.props index 0b546fc092..529da5c53f 100644 --- a/Cpp.Build.props +++ b/Cpp.Build.props @@ -42,7 +42,7 @@ pch.h Level4 - 26800;28251;4100;4127;4189;4239;4244;4245;4389;4456;4457;4701;6387;4458;4505;4515;4459;4702;4706;6031;6248;26451;28182;%(DisableSpecificWarnings) + 26800;28251;4100;4127;4189;4239;4244;4245;4389;4456;4457;4701;6387;4458;4505;4515;4459;4702;6031;6248;26451;28182;%(DisableSpecificWarnings) true TurnOffAllWarnings false diff --git a/tools/BugReportTool/BugReportTool/BugReportTool.vcxproj b/tools/BugReportTool/BugReportTool/BugReportTool.vcxproj index 6c6929b640..16645f145c 100644 --- a/tools/BugReportTool/BugReportTool/BugReportTool.vcxproj +++ b/tools/BugReportTool/BugReportTool/BugReportTool.vcxproj @@ -45,7 +45,7 @@ - 26451;4267;4244;%(DisableSpecificWarnings) + 26451;4706;4267;4244;%(DisableSpecificWarnings) diff --git a/tools/BugReportTool/BugReportTool/InstallationFolder.cpp b/tools/BugReportTool/BugReportTool/InstallationFolder.cpp index 82887c89e9..4fef3b8b40 100644 --- a/tools/BugReportTool/BugReportTool/InstallationFolder.cpp +++ b/tools/BugReportTool/BugReportTool/InstallationFolder.cpp @@ -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)