Andrew Eikum : regedit: Don't call ungetc() twice consecutively.