[Console] Catch exceptions thrown by PDCurses for some users
This commit is contained in:
parent
07ffcad740
commit
cfb252b3ee
@ -250,7 +250,15 @@ namespace Components
|
|||||||
delwin(Console::InputWindow);
|
delwin(Console::InputWindow);
|
||||||
delwin(Console::InfoWindow);
|
delwin(Console::InfoWindow);
|
||||||
endwin();
|
endwin();
|
||||||
delscreen(SP);
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
delscreen(SP);
|
||||||
|
}
|
||||||
|
catch (...)
|
||||||
|
{
|
||||||
|
OutputDebugStringA("Failed to free PDCurses screen\n");
|
||||||
|
}
|
||||||
|
|
||||||
Console::OutputWindow = nullptr;
|
Console::OutputWindow = nullptr;
|
||||||
Console::InputWindow = nullptr;
|
Console::InputWindow = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user