diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-15 18:58:37 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-15 18:58:37 -0800 |
| commit | c031bda3bd17a465109bdfa3c79146f32382a70b (patch) | |
| tree | 3949430e9a77f0daf8d88ff9edf9cc7715e5231e /toolsrc/src/metrics.cpp | |
| parent | e11db4d5da2e471d6066c635cc370f8f9e88670a (diff) | |
| download | vcpkg-c031bda3bd17a465109bdfa3c79146f32382a70b.tar.gz vcpkg-c031bda3bd17a465109bdfa3c79146f32382a70b.zip | |
Test result of assignment. Avoids C4706
Diffstat (limited to 'toolsrc/src/metrics.cpp')
| -rw-r--r-- | toolsrc/src/metrics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/metrics.cpp b/toolsrc/src/metrics.cpp index 263d6eb74..5ef54f15d 100644 --- a/toolsrc/src/metrics.cpp +++ b/toolsrc/src/metrics.cpp @@ -357,7 +357,7 @@ true { DWORD availableData = 0, readData = 0, totalData = 0; - while ((bResults = WinHttpQueryDataAvailable(hRequest, &availableData)) && availableData > 0) + while ((bResults = WinHttpQueryDataAvailable(hRequest, &availableData)) == TRUE && availableData > 0) { responseBuffer.resize(responseBuffer.size() + availableData); |
