Przeglądaj źródła

skip win32 file dialog exceptions (close #172)

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

+ 3 - 2
src/std/debug.c

@@ -107,7 +107,7 @@ HL_API bool hl_debug_read( int pid, vbyte *addr, vbyte *buffer, int size ) {
 		size -= sizeof(long);
 		buffer += sizeof(long);
 	}
-	return true;	
+	return true;
 #	else
 	return false;
 #	endif
@@ -186,6 +186,7 @@ HL_API int hl_debug_wait( int pid, int *thread, int timeout ) {
 			ContinueDebugEvent(e.dwProcessId, e.dwThreadId, DBG_CONTINUE);
 			break;
 		case 0xE06D7363: // C++ EH EXCEPTION
+		case 0x6BA: // File Dialog EXCEPTION
 			ContinueDebugEvent(e.dwProcessId, e.dwThreadId, DBG_EXCEPTION_NOT_HANDLED);
 			break;
 		case EXCEPTION_STACK_OVERFLOW:
@@ -213,7 +214,7 @@ HL_API int hl_debug_wait( int pid, int *thread, int timeout ) {
 		if( sig == SIGSTOP || sig == SIGTRAP )
 			return 1;
 		return 3;
-	}	
+	}
 	return 4;
 #	else
 	return 0;