[0.1.x] ~ WOW64: get AMD64 context fixed

git-svn-id: https://pykd.svn.codeplex.com/svn@77432 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2012-06-20 09:49:31 +00:00 committed by Mikhail I. Izmestev
parent 7ca77dd104
commit 6a71eb41e1

View File

@ -116,9 +116,9 @@ void ThreadContext::getAmd64Context()
ThreadContext::ThreadContext( IDebugClient4 *client ) : ThreadContext::ThreadContext( IDebugClient4 *client ) :
pykd::DbgObject( client ) pykd::DbgObject( client )
{ {
HRESULT hres = m_control->GetExecutingProcessorType(&m_processorType); HRESULT hres = m_control->GetEffectiveProcessorType(&m_processorType);
if (S_OK != hres) if (S_OK != hres)
throw DbgException( "IDebugControl::GetExecutingProcessorType", hres ); throw DbgException( "IDebugControl::GetEffectiveProcessorType", hres );
switch (m_processorType) switch (m_processorType)
{ {