mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 15:41:40 +00:00
c97f15e81a
virtualbox: fix audio driver loading fixes #123851 patch by @jcumming
26 lines
1.3 KiB
Diff
26 lines
1.3 KiB
Diff
diff --git a/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp b/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp
|
|
index cfcb0abbf..2ce564f6f 100644
|
|
--- a/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp
|
|
+++ b/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp
|
|
@@ -258,7 +258,7 @@ static DECLCALLBACK(int32_t) drvHostAudioAlsaLibInitOnce(void *pvUser)
|
|
LogFlowFunc(("\n"));
|
|
|
|
RTLDRMOD hMod = NIL_RTLDRMOD;
|
|
- int rc = RTLdrLoadSystemEx(VBOX_ALSA_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &hMod);
|
|
+ int rc = RTLdrLoad(VBOX_ALSA_LIB, &hMod);
|
|
if (RT_SUCCESS(rc))
|
|
{
|
|
for (uintptr_t i = 0; i < RT_ELEMENTS(SharedFuncs); i++)
|
|
diff --git a/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp b/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp
|
|
index a17fc93f9..148f5c39a 100644
|
|
--- a/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp
|
|
+++ b/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp
|
|
@@ -332,7 +332,7 @@ static DECLCALLBACK(int32_t) drvHostAudioPulseLibInitOnce(void *pvUser)
|
|
LogFlowFunc(("\n"));
|
|
|
|
RTLDRMOD hMod = NIL_RTLDRMOD;
|
|
- int rc = RTLdrLoadSystemEx(VBOX_PULSE_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &hMod);
|
|
+ int rc = RTLdrLoad(VBOX_PULSE_LIB, &hMod);
|
|
if (RT_SUCCESS(rc))
|
|
{
|
|
for (unsigned i = 0; i < RT_ELEMENTS(g_aImportedFunctions); i++)
|