Skip to content

Commit

Permalink
Don't handle exceptions from non-hashlink threads (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
Azrou authored Jul 19, 2023
1 parent 4cda53f commit aad690d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/std/fun.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ DEFINE_PRIM(_BOOL, is_prim_loaded, _DYN);

#if defined(HL_VCC) && !defined(HL_XBO)
static LONG CALLBACK global_handler( PEXCEPTION_POINTERS inf ) {
if( hl_get_thread() == NULL ) return EXCEPTION_CONTINUE_SEARCH;
switch( inf->ExceptionRecord->ExceptionCode ) {
case EXCEPTION_ACCESS_VIOLATION: hl_error("Access violation");
case EXCEPTION_STACK_OVERFLOW: hl_error("Stack overflow");
Expand Down

0 comments on commit aad690d

Please sign in to comment.