https://bugs.winehq.org/show_bug.cgi?id=48798
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
the issue is fixed with https://source.winehq.org/git/wine.git/commitdiff/375668e1222375462314a26e70... ("kernelbase: Open registry keys before looking for sort table.")
Thanks to Alexandre
Apparently you are trying to fix another issue here: "kernelbase: Zero out retkey in the ERROR_INVALID_HANDLE case in RegOpenKeyExW"?
https://www.winehq.org/pipermail/wine-devel/2020-March/162819.html
Strictly spoken that's not what this bug is about. The Valgrind finding and app crash report are related to bugged 'get_language_sort'. I suggest to split 'RegOpenKeyExW' behaviour into separate bug report since they are really different issues.
Regards