[0.2.x] fixed : is64BitSystem return false in wow64 mode

git-svn-id: https://pykd.svn.codeplex.com/svn@81254 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-11-21 07:37:47 +00:00 committed by Mikhail I. Izmestev
parent 5763752e5c
commit 2ef78de6cf

View File

@ -564,12 +564,13 @@ bool is64bitSystem()
PyThread_StateRestore pyThreadRestore( g_dbgEng->pystate ); PyThread_StateRestore pyThreadRestore( g_dbgEng->pystate );
HRESULT hres; HRESULT hres;
ULONG procType;
hres = g_dbgEng->control->IsPointer64Bit(); hres = g_dbgEng->control->GetActualProcessorType( &procType );
if ( FAILED( hres ) ) if ( FAILED( hres ) )
throw DbgException( "IDebugControl::IsPointer64Bit failed" ); throw DbgException( "IDebugControl::GetActualProcessorType failed" );
return hres == S_OK; return procType == IMAGE_FILE_MACHINE_AMD64;
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////