* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: reginf.c,v 1.6 2003/11/14 17:13:36 weiden Exp $
+/* $Id: reginf.c,v 1.7 2004/06/04 23:47:04 navaraf Exp $
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS hive maker
* FILE: tools/mkhive/reginf.h
Ok = InfFindFirstLine (hInf, Section, NULL, &Context);
if (!Ok)
- return FALSE;
+ return TRUE; /* Don't fail if the section isn't present */
for (;Ok; Ok = InfFindNextLine (&Context, &Context))
{
DPRINT("KeyName: <%s>\n", Buffer);
- /* get flags */
- if (!InfGetIntField (&Context, 4, (PLONG)&Flags))
- Flags = 0;
+ if (Delete)
+ {
+ Flags = FLG_ADDREG_DELVAL;
+ }
+ else
+ {
+ /* get flags */
+ if (!InfGetIntField (&Context, 4, (PLONG)&Flags))
+ Flags = 0;
+ }
DPRINT("Flags: %lx\n", Flags);
return FALSE;
}
+ if (!registry_callback (hInf, "DelReg", TRUE))
+ {
+ DPRINT1 ("registry_callback() failed\n");
+ }
+
if (!registry_callback (hInf, "AddReg", FALSE))
{
DPRINT1 ("registry_callback() failed\n");
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: registry.c,v 1.9 2004/05/29 21:15:58 navaraf Exp $
+/* $Id: registry.c,v 1.10 2004/06/04 23:47:04 navaraf Exp $
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS hive maker
* FILE: tools/mkhive/registry.c
RegDeleteKey(HKEY Key,
PCHAR Name)
{
-
- if (strchr(Name, '\\') != NULL)
+ if (Name != NULL && strchr(Name, '\\') != NULL)
return(ERROR_INVALID_PARAMETER);
DPRINT1("FIXME!\n");