Explorar o código

added stack_overflow handling

ncannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
b8b3f0355d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
 		}