[Bug 17984] Invalid handle for RegOpenKeyExA in win64 bit application