From 071ae4e12ae4ec039e4e766577eb602e1e80e12f Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Wed, 5 Oct 2011 08:13:51 +0000 Subject: [PATCH] [pykd] added : unicode support for dbgCommand routine git-svn-id: https://pykd.svn.codeplex.com/svn@70214 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/dbgcmd.cpp | 4 ++-- pykd/dbgcmd.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pykd/dbgcmd.cpp b/pykd/dbgcmd.cpp index c25cbd6..5dc55bd 100644 --- a/pykd/dbgcmd.cpp +++ b/pykd/dbgcmd.cpp @@ -11,7 +11,7 @@ /////////////////////////////////////////////////////////////////////////////// std::string -dbgCommand( const std::string &command ) +dbgCommand( const std::wstring &command ) { HRESULT hres; @@ -19,7 +19,7 @@ dbgCommand( const std::string &command ) { PyThread_StateRestore pyThreadRestore; - hres = dbgExt->control->Execute( DEBUG_OUTCTL_THIS_CLIENT, command.c_str(), 0 ); + hres = dbgExt->control4->ExecuteWide( DEBUG_OUTCTL_THIS_CLIENT, command.c_str(), 0 ); } if ( FAILED( hres ) ) throw DbgException( "IDebugControl::Execute failed" ); diff --git a/pykd/dbgcmd.h b/pykd/dbgcmd.h index d59ad02..9b361e9 100644 --- a/pykd/dbgcmd.h +++ b/pykd/dbgcmd.h @@ -7,7 +7,7 @@ ///////////////////////////////////////////////////////////////////////////////// std::string -dbgCommand( const std::string &command ); +dbgCommand( const std::wstring &command ); template void