[MKHIVE] Sync a bit more of reginf.c with the corresponding setupapi code.