Przeglądaj źródła

added stack_overflow handling

ncannasse 6 lat temu
rodzic
commit
b8b3f0355d
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/std/debug.c

+ 2 - 0
src/std/debug.c

@@ -188,6 +188,8 @@ HL_API int hl_debug_wait( int pid, int *thread, int timeout ) {
 		case 0xE06D7363: // C++ EH EXCEPTION
 			ContinueDebugEvent(e.dwProcessId, e.dwThreadId, DBG_EXCEPTION_NOT_HANDLED);
 			break;
+		case EXCEPTION_STACK_OVERFLOW:
+			return 5;
 		default:
 			return 3;
 		}