Fix crash when no audio device found

pull/37/head
cosmonaut 2022-11-30 09:43:49 -08:00
parent 474b8fe37d
commit 751b8310ce
1 changed files with 1 additions and 1 deletions

View File

@ -46,8 +46,8 @@ namespace MoonWorks.Audio
if (devices == 0) if (devices == 0)
{ {
Logger.LogError("No audio devices found!"); Logger.LogError("No audio devices found!");
Handle = IntPtr.Zero;
FAudio.FAudio_Release(Handle); FAudio.FAudio_Release(Handle);
Handle = IntPtr.Zero;
return; return;
} }