kernel32: Always uninitialize the terminal for the console shell process.
commitdf718b8ab8f0451d026c33d81c1c3cddbed04925
authorAndrew Eikum <aeikum@codeweavers.com>
Tue, 17 Nov 2015 15:41:43 +0000 (17 09:41 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 18 Nov 2015 04:07:02 +0000 (18 13:07 +0900)
tree6b56d0c138d3f5e9afa4485c8ec7b9fbfa72b2ab
parent19eaed6a3833a7bff780ccc31800cad2ecfd48d4
kernel32: Always uninitialize the terminal for the console shell process.

The terminal raw IO check and the console shell process check are used
separately to initialize the terminal in different ways. However, if
either check fails during uninitialization, then no uninitialization
will occur at all and modified terminfo settings will remain instead of
being restored. We should check each condition individually and
uninitialize each part as required.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/kernel32/console.c