https://bugs.winehq.org/show_bug.cgi?id=8036
--- Comment #44 from Claudio sick_soul@yahoo.it --- (In reply to roger from comment #43)
What's wrong with the patch that you couldnt send it over patches list and got merged into upstream?
I tried already multiple times to raise awareness on this issue, and last time a test failed on Windows, as you can see in the comments above, thus the patch was ignored.
I do not have access to any Windows machine, so keeping this patch up to date for the purpose of keeping the game working is all I can do.
The fundamental issue is that the windows profile API does not explicitly mention what happens when section string or key string are the empty string in the GetPrivateProfileString and WritePrivateProfileString.
In fact, it's nothing special at all (the section "" is a valid section, and the key "" is a valid key), but instead wine insists considering section "" and key "" as invalid names for sections/keys, therefore causing all sorts of data corruption and weird runtime behavior when running under wine.