Fix Win32 registery implementation