mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
Find modules and config files relative to the installed libraries.
Do not use replace %PULSE_ROOT% from the environment.
This commit is contained in:
parent
8852b80df8
commit
eb833da570
5 changed files with 67 additions and 86 deletions
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <windows.h>
|
||||
|
||||
extern pa_set_root(HANDLE handle);
|
||||
extern pa_win32_get_toplevel(HANDLE handle);
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
|
||||
WSADATA data;
|
||||
|
|
@ -39,7 +39,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
|
|||
switch (fdwReason) {
|
||||
|
||||
case DLL_PROCESS_ATTACH:
|
||||
if (!pa_set_root(hinstDLL))
|
||||
if (!pa_win32_get_toplevel(hinstDLL))
|
||||
return FALSE;
|
||||
WSAStartup(MAKEWORD(2, 0), &data);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue