conhost: Don't compare the console config if the user cancels the dialog.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2022-03-02 23:54:19 +11:00 committed by Alexandre Julliard
parent 7a49ff107e
commit dfb7428f20
1 changed files with 2 additions and 1 deletions

View File

@ -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;