[Console] Catch exceptions thrown by PDCurses for some users

This commit is contained in:
momo5502 2017-06-08 11:42:01 +02:00
parent 07ffcad740
commit cfb252b3ee

View File

@ -250,7 +250,15 @@ namespace Components
delwin(Console::InputWindow);
delwin(Console::InfoWindow);
endwin();
delscreen(SP);
try
{
delscreen(SP);
}
catch (...)
{
OutputDebugStringA("Failed to free PDCurses screen\n");
}
Console::OutputWindow = nullptr;
Console::InputWindow = nullptr;