Browse Source

added stack_overflow handling

ncannasse 6 năm trước cách đây
mục cha
commit
b8b3f0355d
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;
 		}