https://bugs.winehq.org/show_bug.cgi?id=44405
--- Comment #20 from Richard Yao ryao@gentoo.org --- (In reply to Nikolay Sivov from comment #19)
Return value doesn't matter, it's not used anywhere. I suggest to fix the export, with corresponding test.
I see what you are saying. I don't know if I have time for that right now, but I agree that is the correct fix. My patch was only meant to make it stop crashing (which seems to work in this case) under the assumption that everything else was sane. That assumption is clearly wrong.
Assuming that I find time to do this, would I need to know anything about writing conformance tests beyond what is written on the wiki?
https://wiki.winehq.org/Wine_Developer%27s_Guide/Writing_Conformance_Tests