commit | 01385c6aaab3dbb8d20fcae5b36921d580dbf818 | [log] [tgz] |
---|---|---|
author | Steve Lhomme <robux4@ycbcr.xyz> | Wed Apr 08 17:13:59 2020 +0200 |
committer | Liu Hao <lh_mouse@126.com> | Tue May 19 22:41:49 2020 +0800 |
tree | 1f555d677e0ace196aa423cb76888ab5ac88f788 | |
parent | d58069b1385aa871b0896b18d1b3aa9025e4cab9 [diff] |
winpthreads: do not use the XXXExceptionHandler API in winstore builds Calling RemoveVectoredExceptionHandler()/AddVectoredExceptionHandler() is forbidden in non-desktop apps. https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-addvectoredexceptionhandler https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-removevectoredexceptionhandler If USE_VEH_FOR_MSC_SETTHREADNAME is set in winstore builds, RaiseException is only called if there's a debugger attached. In non-winstore builds it can also be called if the SetThreadName_VEH_handle was set succesfully. Signed-off-by: Liu Hao <lh_mouse@126.com>