Changed registry access method so that 64 bit registry is used on 64 bit Windows.
This change is based on fix applied in v3 maintenance branch at r3686.
Authored by: delphidabbler 2013-10-30
Parent: [r3688]
Child: [r3690]