python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / applications / virtualization / virtualbox / fix-audio-driver-loading.patch
blobccd4b55c88f1133f4737a3e7daea11aa3fe95ba5
1 diff --git a/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp b/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp
2 index cfcb0abbf..2ce564f6f 100644
3 --- a/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp
4 +++ b/src/VBox/Devices/Audio/DrvHostAudioAlsaStubs.cpp
5 @@ -258,7 +258,7 @@ static DECLCALLBACK(int32_t) drvHostAudioAlsaLibInitOnce(void *pvUser)
6 LogFlowFunc(("\n"));
8 RTLDRMOD hMod = NIL_RTLDRMOD;
9 - int rc = RTLdrLoadSystemEx(VBOX_ALSA_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &hMod);
10 + int rc = RTLdrLoadEx(VBOX_ALSA_LIB, &hMod, RTLDRLOAD_FLAGS_NO_UNLOAD, nullptr);
11 if (RT_SUCCESS(rc))
13 for (uintptr_t i = 0; i < RT_ELEMENTS(SharedFuncs); i++)
14 diff --git a/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp b/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp
15 index a17fc93f9..148f5c39a 100644
16 --- a/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp
17 +++ b/src/VBox/Devices/Audio/DrvHostAudioPulseAudioStubs.cpp
18 @@ -332,7 +332,7 @@ static DECLCALLBACK(int32_t) drvHostAudioPulseLibInitOnce(void *pvUser)
19 LogFlowFunc(("\n"));
21 RTLDRMOD hMod = NIL_RTLDRMOD;
22 - int rc = RTLdrLoadSystemEx(VBOX_PULSE_LIB, RTLDRLOAD_FLAGS_NO_UNLOAD, &hMod);
23 + int rc = RTLdrLoadEx(VBOX_PULSE_LIB, &hMod, RTLDRLOAD_FLAGS_NO_UNLOAD, nullptr);
24 if (RT_SUCCESS(rc))
26 for (unsigned i = 0; i < RT_ELEMENTS(g_aImportedFunctions); i++)