winreg: small fix