More updates on editreg.c to bring it better in line with the Samba source.