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

Unified Diff: util/win/process_info.cc

Issue 1120383003: Get generate_dump compiling on Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@tools
Patch Set: Created 5 years, 8 months 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
« no previous file with comments | « util/util.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/win/process_info.cc
diff --git a/util/win/process_info.cc b/util/win/process_info.cc
index 73c9bf85ad5202e9ea9505c7162649d4322f46a8..24fe085e6dc25e5515435eaedb645246208c504d 100644
--- a/util/win/process_info.cc
+++ b/util/win/process_info.cc
@@ -259,9 +259,9 @@ bool ProcessInfo::Initialize(HANDLE process) {
LOG(ERROR) << "NtQueryInformationProcess incorrect size";
return false;
}
- process_id_ = process_basic_information.UniqueProcessId;
- inherited_from_process_id_ =
- process_basic_information.InheritedFromUniqueProcessId;
+ process_id_ = static_cast<DWORD>(process_basic_information.UniqueProcessId);
scottmg 2015/05/04 18:38:03 Ref: https://msdn.microsoft.com/en-us/library/wind
+ inherited_from_process_id_ = static_cast<DWORD>(
+ process_basic_information.InheritedFromUniqueProcessId);
// We now want to read the PEB to gather the rest of our information. The
// PebBaseAddress as returned above is what we want for 64-on-64 and 32-on-32,
« no previous file with comments | « util/util.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698