From dfb7428f20086d96bd43210593af11ec1dc196ef Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Wed, 2 Mar 2022 23:54:19 +1100 Subject: [PATCH] conhost: Don't compare the console config if the user cancels the dialog. Signed-off-by: Hugh McMaster Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- programs/conhost/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/conhost/window.c b/programs/conhost/window.c index 33ffb3915ed..abfc791c1ef 100644 --- a/programs/conhost/window.c +++ b/programs/conhost/window.c @@ -2036,7 +2036,8 @@ static BOOL config_dialog( struct console *console, BOOL current ) header.hwndParent = console->win; header.u3.phpage = pages; header.dwFlags = PSH_NOAPPLYNOW; - PropertySheetW( &header ); + if (PropertySheetW( &header ) < 1) + return TRUE; if (!memcmp( &prev_config, &di.config, sizeof(prev_config) )) return TRUE;