https://bugs.winehq.org/show_bug.cgi?id=51948
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1
--- Comment #17 from Michael Stefaniuc mstefani@winehq.org --- OK, the dmusic object cache implementation in Wine is incomplete.
016c:trace:dmloader:IDirectMusicLoaderImpl_SetSearchDirectory (0014E590, GUID_DirectMusicAllTypes, L"C:\GOG GAMES\GOTHIC 2 GOLD\_WORK\DATA\MUSIC\ADDONWORLD\", 0)
The game is not clearing the information about the old cached object so it should load "DLS_Harp.dls" from the old directory. See fClear parameter description on http://doc.51windows.net/Directx9_SDK/htm/idirectmusicloader8setsearchdirect...
But the cache for objects loaded from file lacks the directory information. So once the search directory is changed the cached but not loaded file objects are lost. Definitely a bug that should be fixed and would be enough to avoid the crash. Also it's easy to add a Wine test for that.
Now if "NEWWORLD\DLS_Harp.dls" should be loaded or "ADDONWORLD\__DLS_Harp.dls" is a different issue; guidObject is the same for both.