Explorar el Código

Merge pull request #29728 from xsellier/bugfix/wasapi-driver-not-initialized

[2.1] If WASAPI driver not initialized, fail the init
Rémi Verschelde hace 6 años
padre
commit
43a5f5b366
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      drivers/wasapi/audio_driver_wasapi.cpp

+ 1 - 0
drivers/wasapi/audio_driver_wasapi.cpp

@@ -243,6 +243,7 @@ Error AudioDriverWASAPI::init() {
 	Error err = init_device();
 	if (err != OK) {
 		ERR_PRINT("WASAPI: init_device error");
+		ERR_FAIL_V(err);
 	}
 
 	active = false;