Index: chrome/browser/memory_details_win.cc |
=================================================================== |
--- chrome/browser/memory_details_win.cc (revision 76445) |
+++ chrome/browser/memory_details_win.cc (working copy) |
@@ -11,6 +11,7 @@ |
#include "base/string_util.h" |
#include "base/utf_string_conversions.h" |
#include "base/win/scoped_handle.h" |
+#include "base/win/windows_version.h" |
#include "chrome/common/chrome_version_info.h" |
#include "chrome/common/url_constants.h" |
#include "content/browser/browser_child_process_host.h" |
@@ -93,15 +94,9 @@ |
PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, pid)); |
if (!handle.Get()) |
continue; |
- bool is_64bit_process = false; |
- // IsWow64Process() returns FALSE for a 32bit process on a 32bit OS. |
- // We need to check if the real OS is 64bit. |
- if (is_64bit_os) { |
- BOOL is_wow64 = FALSE; |
- // IsWow64Process() is supported by Windows XP SP2 or later. |
- IsWow64Process(handle, &is_wow64); |
- is_64bit_process = !is_wow64; |
- } |
+ bool is_64bit_process = is_64bit_os && |
+ (base::win::GetWOW64StatusForHandle(handle) == |
+ base::win::WOW64_DISABLED); |
for (unsigned int index2 = 0; index2 < process_data_.size(); index2++) { |
if (_wcsicmp(process_data_[index2].process_name.c_str(), |
process_entry.szExeFile) != 0) |