[PATCH 1/2] conhost: Fix copy-paste error when setting windows size.

Roman Pišl rpisl at seznam.cz
Mon Feb 1 11:29:15 CST 2021


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50602

Signed-off-by: Roman Pišl <rpisl at seznam.cz>
---
 programs/conhost/window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/conhost/window.c b/programs/conhost/window.c
index 55690377a7e..5e94a1d454e 100644
--- a/programs/conhost/window.c
+++ b/programs/conhost/window.c
@@ -1885,7 +1885,7 @@ static void apply_config( struct console *console, const struct console_config *
     console->active->attr = config->attr;
     console->active->popup_attr = config->popup_attr;
     console->active->win.left   = config->win_pos.X;
-    console->active->win.right  = config->win_pos.Y;
+    console->active->win.top    = config->win_pos.Y;
     console->active->win.right  = config->win_pos.X + config->win_width - 1;
     console->active->win.bottom = config->win_pos.Y + config->win_height - 1;
     memcpy( console->active->color_map, config->color_map, sizeof(config->color_map) );
-- 
2.20.1




More information about the wine-devel mailing list