Hugh McMaster : cmd.exe: Remove redundant call to SetConsoleMode.

Alexandre Julliard julliard at wine.codeweavers.com
Fri May 8 05:21:28 CDT 2015


Module: wine
Branch: master
Commit: 27753f2ea606d75193efa1ddc1dd6261ef2342d7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=27753f2ea606d75193efa1ddc1dd6261ef2342d7

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Thu May  7 22:36:52 2015 +1000

cmd.exe: Remove redundant call to SetConsoleMode.

---

 programs/cmd/wcmdmain.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index bc9b216..36d2ec1 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -2593,8 +2593,6 @@ int wmain (int argc, WCHAR *argvW[])
       return errorlevel;
   }
 
-  SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), ENABLE_LINE_INPUT |
-                 ENABLE_ECHO_INPUT | ENABLE_PROCESSED_INPUT);
   SetConsoleTitleW(WCMD_LoadMessage(WCMD_CONSTITLE));
 
   /* Note: cmd.exe /c dir does not get a new color, /k dir does */




More information about the wine-cvs mailing list