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

Unified Diff: syzygy/agent/asan/registry_cache.cc

Issue 2363733003: Make syzyasan_rtl compile in 64 bit (Closed)
Patch Set: Nits. Created 4 years, 2 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 | « syzygy/agent/asan/logger_unittest.cc ('k') | syzygy/agent/asan/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: syzygy/agent/asan/registry_cache.cc
diff --git a/syzygy/agent/asan/registry_cache.cc b/syzygy/agent/asan/registry_cache.cc
index 12a3d24151e378f75ffa99942066aff19e925171..b36f64f81a4e7067bce38daf3b3aa038b93a5c66 100644
--- a/syzygy/agent/asan/registry_cache.cc
+++ b/syzygy/agent/asan/registry_cache.cc
@@ -146,9 +146,14 @@ bool RegistryCache::InitModuleInfo() {
module_version_ = version_info->product_version();
if (module_version_.empty()) {
// If that fails, we try grabbing the version from the PE signature.
+#ifndef _WIN64
pe::PEFile pe_file;
+ pe::PEFile::Signature signature;
+#else
+ pe::PEFile64 pe_file;
+ pe::PEFile64::Signature signature;
+#endif
if (pe_file.Init(file_path)) {
- pe::PEFile::Signature signature;
pe_file.GetSignature(&signature);
module_version_ = base::StringPrintf(
L"%08X%x", signature.module_time_date_stamp, signature.module_size);
« no previous file with comments | « syzygy/agent/asan/logger_unittest.cc ('k') | syzygy/agent/asan/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698