Jordan Russell's patch (again): a couple of registry read operations