[Bug 51948] Gothic 2 Gold crashes when first entering addonworld (Jharkendar)

WineHQ Bugzilla wine-bugs at winehq.org
Tue Nov 16 16:34:20 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=51948

Michael Stefaniuc <mstefani at winehq.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1

--- Comment #17 from Michael Stefaniuc <mstefani at 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/idirectmusicloader8setsearchdirectory.htm

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.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list