https://bugs.winehq.org/show_bug.cgi?id=49340
--- Comment #1 from Tomasz Kowalczyk tomasz.piotr.kowalczyk@gmail.com --- I ran WINEDEBUG=+all, dumped the output to file, and then grepped for "hxaudio". There are a few interesting entries - first, it correctly translates its Windows path to Linux:
53751.438:0020:0024:trace:file:nt_to_unix_file_name_internal L"\??\C:\Program Files\Ubisoft\Splinter Cell Pandora Tomorrow\HXAudio.dll" -> "$WINEPREFIX/dosdevices/c:/Program Files/Ubisoft/Splinter Cell Pandora Tomorrow/HXAudio.dll"
The load order is also correct as it can't find a builtin and loads the native one:
53751.452:0020:0024:warn:module:find_builtin_dll cannot find builtin library for L"HXAudio.dll" 53751.452:0020:0024:trace:module:load_native_dll Trying native dll L"\??\C:\Program Files\Ubisoft\Splinter Cell Pandora Tomorrow\HXAudio.dll"
Unfortunately, the library is then attached to a process (?) and that fails:
0024: load_dll( dbg_offset=0, base=02e10000, name=00dae660, dbg_size=0, filename=L"C:\Program Files\Ubisoft\Splinter Cell Pandora Tomorrow\HXAudio.dll" ) 53751.471:0020:0024:trace:snoop:SNOOP_SetupDLL hmod=0x2e10000, name=HXAudio.dll 53751.471:0020:0024:trace:loaddll:load_native_dll Loaded L"C:\Program Files\Ubisoft\Splinter Cell Pandora Tomorrow\HXAudio.dll" at 0x2e10000: native 53751.471:0020:0024:trace:module:load_dll Loaded module L"\??\C:\Program Files\Ubisoft\Splinter Cell Pandora Tomorrow\HXAudio.dll" at 0x2e10000 53751.471:0020:0024:trace:module:process_attach (L"HXAudio.dll",(nil)) - START 53751.471:0020:0024:Call PE DLL (proc=0x2e84434,module=0x2e10000 L"HXAudio.dll",reason=PROCESS_ATTACH,res=(nil)) 53751.485:0020:0024:Ret PE DLL (proc=0x2e84434,module=0x2e10000 L"HXAudio.dll",reason=PROCESS_ATTACH,res=(nil)) retval=0 53751.485:0020:0024:Call PE DLL (proc=0x2e84434,module=0x2e10000 L"HXAudio.dll",reason=PROCESS_DETACH,res=(nil)) 53751.485:0020:0024:Ret PE DLL (proc=0x2e84434,module=0x2e10000 L"HXAudio.dll",reason=PROCESS_DETACH,res=(nil)) retval=0 53751.485:0020:0024:warn:module:process_attach Initialization of L"HXAudio.dll" failed 53751.485:0020:0024:trace:module:process_attach (L"HXAudio.dll",(nil)) - END 53751.485:0020:0024:trace:module:LdrUnloadDll (L"HXAudio.dll") - START 53751.485:0020:0024:trace:module:MODULE_DecRefCount (L"HXAudio.dll") ldr.LoadCount: 0 53751.485:0020:0024:trace:module:free_modref unloading L"C:\Program Files\Ubisoft\Splinter Cell Pandora Tomorrow\HXAudio.dll"
The free_modref entry ends the interesting block, which is then repeated once again and fails the same way. Game attempts then to load various files with the same name and different extensions (.u, .umx, etc.), doesn't find any of them and concludes as per my first report.
How can I check what is the reason for this failure? Any help on how to debug it further would be appreciated. Is there any way to check whether the DLL file is intact?