From 4c40342a918d3342d9490c5f25a92168ecd4841b Mon Sep 17 00:00:00 2001 From: "SND\\EreTIk_cp" Date: Tue, 20 Sep 2011 22:31:51 +0000 Subject: [PATCH] [+] pyDia: query failed HRESULT value git-svn-id: https://pykd.svn.codeplex.com/svn@69904 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/dbgext.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pykd/dbgext.cpp b/pykd/dbgext.cpp index 61064bc..1feec3f 100644 --- a/pykd/dbgext.cpp +++ b/pykd/dbgext.cpp @@ -232,14 +232,15 @@ BOOST_PYTHON_MODULE( pykd ) .def( python::init( python::args("desc"), "constructor" ) ) .def( "desc", &DbgException::getDesc, "Get exception description" ) - .def( "__str__", &DbgException::print); + .def( "__str__", &DbgException::print); DbgException::setTypeObject( dbgExceptionClass.ptr() ); // DIA exceptions - python::class_ > diaException( - "DiaException", - "Debug interface access exception", - python::no_init ); + python::class_ > diaException( + "DiaException", "Debug interface access exception", + python::no_init ); + diaException + .def( "hres", &pyDia::Exception::getRes ); pyDia::Exception::setTypeObject( diaException.ptr() ); boost::python::register_exception_translator( &pyDia::Exception::exceptionTranslate );