Jacek Caban : wineconsole: Use IOCTL_CONDRV_SET_INPUT_INFO in WINECON_SetHistoryMode.

Alexandre Julliard julliard at winehq.org
Mon Jul 20 15:30:09 CDT 2020


Module: wine
Branch: master
Commit: bd12ec5dfff885a1bd5a5d05b2ec48129e6f4398
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=bd12ec5dfff885a1bd5a5d05b2ec48129e6f4398

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Jul 20 15:38:18 2020 +0200

wineconsole: Use IOCTL_CONDRV_SET_INPUT_INFO in WINECON_SetHistoryMode.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/wineconsole/wineconsole.c | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c
index 35c2f8e92d..2ad9cc84ee 100644
--- a/programs/wineconsole/wineconsole.c
+++ b/programs/wineconsole/wineconsole.c
@@ -128,17 +128,9 @@ static BOOL WINECON_SetHistorySize(HANDLE hConIn, int size)
  */
 static BOOL WINECON_SetHistoryMode(HANDLE hConIn, int mode)
 {
-    BOOL	ret;
-
-    SERVER_START_REQ(set_console_input_info)
-    {
-	req->handle = wine_server_obj_handle( hConIn );
-	req->mask = SET_CONSOLE_INPUT_INFO_HISTORY_MODE;
-	req->history_mode = mode;
-	ret = !wine_server_call_err( req );
-    }
-    SERVER_END_REQ;
-    return ret;
+    struct condrv_input_info_params params = { SET_CONSOLE_INPUT_INFO_HISTORY_MODE };
+    params.info.history_mode = mode;
+    return DeviceIoControl(hConIn, IOCTL_CONDRV_SET_INPUT_INFO, &params, sizeof(params), NULL, 0, NULL, NULL);
 }
 
 /******************************************************************




More information about the wine-cvs mailing list