From 46b960975af6be3cd446a509797d61ad8974b8e5 Mon Sep 17 00:00:00 2001
From: "SND\\kernelnet_cp"
 <SND\kernelnet_cp@9b283d60-5439-405e-af05-b73fd8c4d996>
Date: Mon, 17 Sep 2012 14:47:29 +0000
Subject: [PATCH] [0.2.x] fixed : removed pycmd input echo

git-svn-id: https://pykd.svn.codeplex.com/svn@79645 9b283d60-5439-405e-af05-b73fd8c4d996
---
 pykd/dbgext.cpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/pykd/dbgext.cpp b/pykd/dbgext.cpp
index c31bf70..1175826 100644
--- a/pykd/dbgext.cpp
+++ b/pykd/dbgext.cpp
@@ -100,7 +100,6 @@ HRESULT
 CALLBACK
 py( PDEBUG_CLIENT4 client, PCSTR args )
 {
-//    g_dbgEng.setClient( client );
 
     WindbgGlobalSession::RestorePyState();
 
@@ -212,10 +211,12 @@ HRESULT
 CALLBACK
 pycmd( PDEBUG_CLIENT4 client, PCSTR args )
 {
-//    g_dbgEng.setClient( client );
-
     WindbgGlobalSession::RestorePyState();
 
+    ULONG    mask = 0;
+    client->GetOutputMask( &mask );
+    client->SetOutputMask( mask & ~DEBUG_OUTPUT_PROMPT ); // ������ ��� �����
+
     try {
 
         // ��������������� ����������� ������� ��
@@ -241,6 +242,8 @@ pycmd( PDEBUG_CLIENT4 client, PCSTR args )
         eprintln( L"unexpected error" );
     }
 
+    client->SetOutputMask( mask );
+
     WindbgGlobalSession::SavePyState();
 
     return S_OK;