[Bug 32779] RegOpenKeyExA fails on 64bit wine when build with lazarus (fpc 2.6 - 64bit)

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jan 22 05:10:28 CST 2013


http://bugs.winehq.org/show_bug.cgi?id=32779

--- Comment #4 from Rico <kgbricola at web.de> 2013-01-22 05:10:28 CST ---
((HKEY)(ULONG_PTR)(LONG)0x80000001) does not work, but
((HKEY)(ULONG_PTR)(ULONG)0x80000001) works fine. This breaks the mingw build
(see
http://sourceforge.net/apps/trac/mingw-w64/browser/trunk/mingw-w64-headers/include/winreg.h?rev=5289#L37
).

Maybe the correct step is using ((HKEY)(ULONG_PTR)(ULONG)0x80000001) for
HKEY_CURRENT_USER and later comparing hkey like: (hkey & 0xffffffff) ==
HKEY_CURRENT_USER ?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list