Freeloader: Check return code of RegOpenKey() in FrLdrLoadBootDrivers() for failure

svn path=/trunk/; revision=20866
This commit is contained in:
Nathan Woods 2006-01-14 21:57:07 +00:00
parent 24460a5027
commit df36b0db90

View file

@ -428,7 +428,8 @@ FrLdrLoadBootDrivers(PCHAR szSystemRoot,
/* open driver Key */
rc = RegOpenKey(hServiceKey, ServiceName, &hDriverKey);
if (rc == ERROR_SUCCESS)
{
/* Read the Start Value */
ValueSize = sizeof(ULONG);
rc = RegQueryValue(hDriverKey, L"Start", &ValueType, (PUCHAR)&StartValue, &ValueSize);
@ -478,6 +479,7 @@ FrLdrLoadBootDrivers(PCHAR szSystemRoot,
DbgPrint((DPRINT_REACTOS, " Skipping driver '%S' with Start %d, Tag %d and Group '%S' (Current Tag %d, current group '%S')\n",
ServiceName, StartValue, TagValue, DriverGroup, OrderList[TagIndex], GroupName));
}
}
Index++;
}