mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[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:
parent
5763752e5c
commit
2ef78de6cf
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user