Index: snapshot/win/pe_image_reader.cc |
diff --git a/snapshot/win/pe_image_reader.cc b/snapshot/win/pe_image_reader.cc |
index 9abf0b139d4dce25cdeaae8e2a2372d16e6d3658..cf6133db173402e10c1aa5a5d44d67655e957acd 100644 |
--- a/snapshot/win/pe_image_reader.cc |
+++ b/snapshot/win/pe_image_reader.cc |
@@ -200,8 +200,10 @@ bool PEImageReader::VSFixedFileInfo( |
WinVMAddress address; |
WinVMSize size; |
+ const uint16_t vs_file_info_type = |
+ static_cast<uint16_t>(reinterpret_cast<uintptr_t>(VS_FILE_INFO)); |
Mark Mentovai
2015/12/15 00:58:56
RT_VERSION belongs with this, since it’s the same
|
if (!resource_reader.FindResourceByID( |
- reinterpret_cast<uint16_t>(VS_FILE_INFO), // RT_VERSION |
+ vs_file_info_type, // RT_VERSION |
VS_VERSION_INFO, |
MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), |
&address, |