diff --git a/pykd/cpureg.cpp b/pykd/cpureg.cpp index e89a080..ccacd56 100644 --- a/pykd/cpureg.cpp +++ b/pykd/cpureg.cpp @@ -1,5 +1,7 @@ #include "stdafx.h" +#include + #include "cpureg.h" #include "dbgclient.h" @@ -14,7 +16,7 @@ CpuReg::CpuReg( IDebugClient4 *client, const std::string ®Name ) : m_name = regName; - hres = m_registers->GetIndexByName( m_name.c_str(), &m_index ); + hres = m_registers->GetIndexByName( boost::to_lower_copy(m_name).c_str(), &m_index ); if ( FAILED( hres ) ) throw DbgException( "IDebugRegister::GetIndexByName", hres );