(Re)add catch for wchar_t in VideoDisplay::Render as it turns out that some of the stuff it calls still throws strings

Originally committed to SVN as r4249.
This commit is contained in:
Thomas Goyne 2010-04-30 03:00:15 +00:00
parent fd701c67ec
commit 27a159793a

View file

@ -303,6 +303,13 @@ catch (const VideoOutException &err) {
err.GetMessage().c_str());
VideoContext::Get()->Reset();
}
catch (const wchar_t *err) {
wxLogError(
L"An error occurred trying to render the video frame on the screen.\n"
L"Error message reported: %s",
err);
VideoContext::Get()->Reset();
}
catch (...) {
wxLogError(
_T("An error occurred trying to render the video frame to screen.\n")