| 884 | #endif |
| 885 | |
| 886 | static PCONTEXT get_current_exception_context() |
| 887 | { |
| 888 | PCONTEXT * pctx = NULL; |
| 889 | #if defined(_MSC_VER) && _MSC_VER >= 1400 && _MSC_VER < 1900 |
| 890 | LPSTR ptd = (LPSTR)_getptd(); |
| 891 | if (ptd) |
| 892 | pctx = (PCONTEXT *)(ptd + (sizeof(void*) == 4 ? 0x8C : 0xF8)); |
| 893 | #endif |
| 894 | #if defined(_MSC_VER) && _MSC_VER >= 1900 |
| 895 | pctx = (PCONTEXT *)__current_exception_context(); |
| 896 | #endif |
| 897 | return pctx ? *pctx : NULL; |
| 898 | } |
| 899 | |
| 900 | bool StackWalker::Init(ExceptType extype, int options, LPCSTR szSymPath, DWORD dwProcessId, |
| 901 | HANDLE hProcess, PEXCEPTION_POINTERS exp) |
no outgoing calls
no test coverage detected