Change XAudio2 DLL search flags to DEFAULT_DIRS
This commit is contained in:
1 parent
d6210ae76f
commit
1b13152286
1 file changed
+1
-1
Vendored
+1
-1
@@ -724,7 +724,7 @@ Create :: proc "stdcall" (ppXAudio2: ^^IXAudio2, Flags: FLAGS = {}, XAudio2Proce
|
|||||||
create_info: CreateInfoFunc
|
create_info: CreateInfoFunc
|
||||||
|
|
||||||
if dll_Instance == nil {
|
if dll_Instance == nil {
|
||||||
dll_Instance = win.LoadLibraryExW(win.L("xaudio2_9.dll"), nil, {.LOAD_LIBRARY_SEARCH_SYSTEM32})
|
dll_Instance = win.LoadLibraryExW(win.L("xaudio2_9.dll"), nil, {.LOAD_LIBRARY_SEARCH_DEFAULT_DIRS})
|
||||||
if dll_Instance == nil {
|
if dll_Instance == nil {
|
||||||
return HRESULT(win.GetLastError())
|
return HRESULT(win.GetLastError())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user