https://bugs.winehq.org/show_bug.cgi?id=48229
--- Comment #8 from Paul Gofman gofmanp@gmail.com --- Created attachment 66262 --> https://bugs.winehq.org/attachment.cgi?id=66262 Add stub for LoadPackagedLibrary
(In reply to Alexandre Julliard from comment #6)
Does the game do things differently if you set version to Win10? Because the functions are in kernelbase there, just like in Wine, so the hooking wouldn't work.
Indeed, I initially tested the behaviour on Win 7 only but that appears to be different from Win8+ where such a hooking fails just like with Wine.
I tested the game further. Changing Windows version does not affect anything, but I found that the game detects Win 8+ by getting proc address of LoadPackagedLibrary from kernel32.dll (which is available starting from Win8 according to MSDN) and hotpatches differently.
Attached patch adds a stub for LoadPackagedLibrary to kernel32 and fixes the issue.