From dc61a2fe6c25bd325024b25dd6af5c5074bb85fd Mon Sep 17 00:00:00 2001 From: Martin Messer Date: Fri, 14 Apr 2023 14:00:10 +0200 Subject: [PATCH] fix: virtualbox: make alsa as audio backend working --- .../virtualization/virtualbox/fix-audio-driver-loading.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/virtualbox/fix-audio-driver-loading.patch b/pkgs/applications/virtualization/virtualbox/fix-audio-driver-loading.patch index 552f867f1acc..ccd4b55c88f1 100644 --- a/pkgs/applications/virtualization/virtualbox/fix-audio-driver-loading.patch +++ b/pkgs/applications/virtualization/virtualbox/fix-audio-driver-loading.patch @@ -7,7 +7,7 @@ index cfcb0abbf..2ce564f6f 100644 RTLDRMOD hMod = NIL_RTLDRMOD; - int rc = RTLdrLoadSystemEx(VBOX_ALSA_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &hMod); -+ int rc = RTLdrLoad(VBOX_ALSA_LIB, &hMod); ++ int rc = RTLdrLoadEx(VBOX_ALSA_LIB, &hMod, RTLDRLOAD_FLAGS_NO_UNLOAD, nullptr); if (RT_SUCCESS(rc)) { for (uintptr_t i = 0; i < RT_ELEMENTS(SharedFuncs); i++) @@ -20,7 +20,7 @@ index a17fc93f9..148f5c39a 100644 RTLDRMOD hMod = NIL_RTLDRMOD; - int rc = RTLdrLoadSystemEx(VBOX_PULSE_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &hMod); -+ int rc = RTLdrLoad(VBOX_PULSE_LIB, &hMod); ++ int rc = RTLdrLoadEx(VBOX_PULSE_LIB, &hMod, RTLDRLOAD_FLAGS_NO_UNLOAD, nullptr); if (RT_SUCCESS(rc)) { for (unsigned i = 0; i < RT_ELEMENTS(g_aImportedFunctions); i++) \ No newline at end of file