[0.1.x] fix: check platform type

git-svn-id: https://pykd.svn.codeplex.com/svn@71449 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2011-11-17 17:24:22 +00:00 committed by Mikhail I. Izmestev
parent 1bdfc6e278
commit 6bca1aa262

View File

@ -153,7 +153,7 @@ PointerTypeInfo::PointerTypeInfo( pyDia::SymbolPtr &symbol )
PointerTypeInfo::PointerTypeInfo( pyDia::SymbolPtr &symScope, const std::string &symName ) PointerTypeInfo::PointerTypeInfo( pyDia::SymbolPtr &symScope, const std::string &symName )
{ {
m_derefType = TypeInfo::getTypeInfo( symScope, symName ); m_derefType = TypeInfo::getTypeInfo( symScope, symName );
m_size = symScope->getMachineType() == CV_CFL_X64 ? 8 : 4; m_size = (symScope->getMachineType() == IMAGE_FILE_MACHINE_AMD64) ? 8 : 4;
} }
///////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////