Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/lib/sysdep/os/win/wseh.cpp
Show First 20 Lines • Show All 271 Lines • ▼ Show 20 Lines | long __stdcall wseh_ExceptionFilter(struct _EXCEPTION_POINTERS* ep) | ||||
int line = 0; | int line = 0; | ||||
wchar_t func[DEBUG_SYMBOL_CHARS] = {0}; | wchar_t func[DEBUG_SYMBOL_CHARS] = {0}; | ||||
GetExceptionLocus(ep, file, &line, func); | GetExceptionLocus(ep, file, &line, func); | ||||
wchar_t message[600]; | wchar_t message[600]; | ||||
const wchar_t* messageFormat = | const wchar_t* messageFormat = | ||||
L"Much to our regret we must report the program has encountered an error.\r\n" | L"Much to our regret we must report the program has encountered an error.\r\n" | ||||
L"\r\n" | L"\r\n" | ||||
L"Please let us know at http://trac.wildfiregames.com/ and attach the crashlog.txt and crashlog.dmp files.\r\n" | L"Please let us know at https://trac.wildfiregames.com/ and attach the crashlog.txt and crashlog.dmp files.\r\n" | ||||
L"You may find paths to these files at https://trac.wildfiregames.com/wiki/GameDataPaths \r\n" | L"You may find paths to these files at https://trac.wildfiregames.com/wiki/GameDataPaths \r\n" | ||||
L"\r\n" | L"\r\n" | ||||
L"Details: unhandled exception (%ls)\r\n"; | L"Details: unhandled exception (%ls)\r\n"; | ||||
swprintf_s(message, ARRAY_SIZE(message), messageFormat, description); | swprintf_s(message, ARRAY_SIZE(message), messageFormat, description); | ||||
size_t flags = 0; | size_t flags = 0; | ||||
if(ep->ExceptionRecord->ExceptionFlags & EXCEPTION_NONCONTINUABLE) | if(ep->ExceptionRecord->ExceptionFlags & EXCEPTION_NONCONTINUABLE) | ||||
flags = DE_NO_CONTINUE; | flags = DE_NO_CONTINUE; | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator