Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(737)

Unified Diff: components/startup_metric_utils/browser/startup_metric_utils.cc

Issue 1422773008: Fixing remaining VC++ 2015 64-bit build breaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to latest Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/startup_metric_utils/browser/startup_metric_utils.cc
diff --git a/components/startup_metric_utils/browser/startup_metric_utils.cc b/components/startup_metric_utils/browser/startup_metric_utils.cc
index 920471640878449790df9bfa4b1837890440cc09..0d8bc8993ea0ecefa2974c9a21693abfa90dccf3 100644
--- a/components/startup_metric_utils/browser/startup_metric_utils.cc
+++ b/components/startup_metric_utils/browser/startup_metric_utils.cc
@@ -136,7 +136,7 @@ bool GetHardFaultCountForCurrentProcess(uint32_t* hard_fault_count,
DCHECK_LE(index + sizeof(SYSTEM_PROCESS_INFORMATION_EX), buffer.size());
SYSTEM_PROCESS_INFORMATION_EX* proc_info =
reinterpret_cast<SYSTEM_PROCESS_INFORMATION_EX*>(buffer.data() + index);
- if (reinterpret_cast<DWORD>(proc_info->UniqueProcessId) == proc_id) {
+ if (reinterpret_cast<uintptr_t>(proc_info->UniqueProcessId) == proc_id) {
Will Harris 2015/11/10 18:05:14 UniqueProcessId is a HANDLE, shouldn't this be a d
brucedawson 2015/11/10 18:43:26 There's no truncation because proc_id is extended
*hard_fault_count = proc_info->HardFaultCount;
return true;
}

Powered by Google App Engine
This is Rietveld 408576698