[Console] Use try/except SEH

This commit is contained in:
momo5502 2017-07-14 11:36:37 +02:00
parent 7d55ee2633
commit e4ff3113ea

View File

@ -246,7 +246,7 @@ namespace Components
void Console::Destroy()
{
try
__try
{
delwin(Console::OutputWindow);
delwin(Console::InputWindow);
@ -254,10 +254,7 @@ namespace Components
endwin();
delscreen(SP);
}
catch (...)
{
OutputDebugStringA("Failed to free PDCurses screen\n");
}
__finally {}
Console::OutputWindow = nullptr;
Console::InputWindow = nullptr;