- Fail when something goes wrong instead of pretending everything's peachy.
CORE-13241 #resolve
svn path=/trunk/; revision=74540
for (i = 2; i < argc; i++)
{
convert_path (FileName, argv[i]);
- ImportRegistryFile (FileName);
+ if (!ImportRegistryFile (FileName))
+ {
+ return 1;
+ }
}
convert_path (FileName, argv[1]);
if (!registry_callback (hInf, (PWCHAR)DelReg, TRUE))
{
DPRINT1 ("registry_callback() for DelReg failed\n");
+ InfHostCloseFile (hInf);
+ return FALSE;
}
if (!registry_callback (hInf, (PWCHAR)AddReg, FALSE))
{
DPRINT1 ("registry_callback() for AddReg failed\n");
+ InfHostCloseFile (hInf);
+ return FALSE;
}
InfHostCloseFile (hInf);