Index: chrome/browser/private_working_set_snapshot_win.cc |
diff --git a/chrome/browser/private_working_set_snapshot_win.cc b/chrome/browser/private_working_set_snapshot_win.cc |
index bd31dc71f985f15cb53a034082cafc352c14336a..0a0303ad2eec43abe5cc71af8db813035c507614 100644 |
--- a/chrome/browser/private_working_set_snapshot_win.cc |
+++ b/chrome/browser/private_working_set_snapshot_win.cc |
@@ -115,9 +115,9 @@ void PrivateWorkingSetSnapshot::Sample() { |
DWORD buffer_size1 = 0; |
DWORD item_count1 = 0; |
// Process IDs should be retrieved as PDH_FMT_LONG |
- if (PdhGetFormattedCounterArray(counter_pair.process_id_handle, |
- PDH_FMT_LONG, &buffer_size1, &item_count1, |
- nullptr) != PDH_MORE_DATA) |
+ if (PdhGetFormattedCounterArray( |
+ counter_pair.process_id_handle, PDH_FMT_LONG, &buffer_size1, |
+ &item_count1, nullptr) != static_cast<PDH_STATUS>(PDH_MORE_DATA)) |
continue; |
if (buffer_size1 == 0 || item_count1 == 0) |
continue; |
@@ -128,9 +128,9 @@ void PrivateWorkingSetSnapshot::Sample() { |
// Note that if this second call to PdhGetFormattedCounterArray with the |
// buffer size and count variables being zero is omitted then the PID and |
// working-set results are not reliably correlated. |
- if (PdhGetFormattedCounterArray(counter_pair.private_ws_handle, |
- PDH_FMT_LARGE, &buffer_size2, &item_count2, |
- nullptr) != PDH_MORE_DATA) |
+ if (PdhGetFormattedCounterArray( |
+ counter_pair.private_ws_handle, PDH_FMT_LARGE, &buffer_size2, |
+ &item_count2, nullptr) != static_cast<PDH_STATUS>(PDH_MORE_DATA)) |
continue; |
// It is not clear whether Pdh guarantees that the two counters in the same |