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

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

Issue 2363733003: Make syzyasan_rtl compile in 64 bit (Closed)
Patch Set: Created 4 years, 3 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
Index: syzygy/agent/asan/registry_cache.cc
diff --git a/syzygy/agent/asan/registry_cache.cc b/syzygy/agent/asan/registry_cache.cc
index 8d6a42ddc1f925135ae936b87dae9ca7f73820fe..d7e2bfdfac153746133cbd441cb8700b8e62fd50 100644
--- a/syzygy/agent/asan/registry_cache.cc
+++ b/syzygy/agent/asan/registry_cache.cc
@@ -135,9 +135,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);

Powered by Google App Engine
This is Rietveld 408576698