Syncronize head editreg.c with 3.0.0 ...