http://bugs.winehq.org/show_bug.cgi?id=32779
--- Comment #1 from Rico kgbricola@web.de 2013-01-22 03:50:34 CST --- Created attachment 43291 --> http://bugs.winehq.org/attachment.cgi?id=43291 updated mingw64 to show the problem.
New mingw test case to show the problem, see https://testbot.winehq.org/JobDetails.pl?Key=24062 which works on win, but fails on wine.
#define HKEY_CURRENT_USER ((HKEY)(LONG_PTR)(LONG)0x80000001)
laz64: fixme:reg:RegOpenKeyExA hkey1 0x80000001 fixme:reg:RegOpenKeyExA hkey2 0x80000001
mingw64: fixme:reg:RegOpenKeyExA hkey1 0xffffffff80000001 fixme:reg:RegOpenKeyExA hkey2 0x30
So imho the HKEY_CURRENT_USER supplied by laz64 doesn't match the predefined version in wine and thus it fails in get_special_root_hkey() - http://source.winehq.org/git/wine.git/blob/HEAD:/dlls/advapi32/registry.c#l2... .