Jacek Caban : conhost: Remove no longer needed condrv_input_info fields.

Alexandre Julliard julliard at winehq.org
Wed Oct 14 15:37:22 CDT 2020


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Oct 14 19:58:39 2020 +0200

conhost: Remove no longer needed condrv_input_info fields.

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

---

 include/wine/condrv.h      |  4 ----
 programs/conhost/conhost.c | 12 ++++--------
 2 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/include/wine/condrv.h b/include/wine/condrv.h
index f4ed77a69b..eed8bc5bfc 100644
--- a/include/wine/condrv.h
+++ b/include/wine/condrv.h
@@ -82,10 +82,6 @@ struct condrv_input_info
 {
     unsigned int  input_cp;       /* console input codepage */
     unsigned int  output_cp;      /* console output codepage */
-    unsigned int  history_mode;   /* whether we duplicate lines in history */
-    unsigned int  history_size;   /* number of lines in history */
-    unsigned int  history_index;  /* number of used lines in history */
-    unsigned int  edition_mode;   /* index to the edition mode flavors */
     unsigned int  input_count;    /* number of available input records */
     condrv_handle_t win;          /* renderer window handle */
 };
diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c
index b8f954acb5..a93f9be73b 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -2396,14 +2396,10 @@ static NTSTATUS console_input_ioctl( struct console *console, unsigned int code,
             TRACE( "get info\n" );
             if (in_size || *out_size != sizeof(*info)) return STATUS_INVALID_PARAMETER;
             if (!(info = alloc_ioctl_buffer( sizeof(*info )))) return STATUS_NO_MEMORY;
-            info->history_mode  = console->history_mode;
-            info->history_size  = console->history_size;
-            info->history_index = console->history_index;
-            info->edition_mode  = console->edition_mode;
-            info->input_cp      = console->input_cp;
-            info->output_cp     = console->output_cp;
-            info->win           = condrv_handle( console->win );
-            info->input_count   = console->record_count;
+            info->input_cp    = console->input_cp;
+            info->output_cp   = console->output_cp;
+            info->win         = condrv_handle( console->win );
+            info->input_count = console->record_count;
             return STATUS_SUCCESS;
         }
 




More information about the wine-cvs mailing list