mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:36:04 +00:00
Freeloader: Check return code of RegOpenKey() in FrLdrLoadBootDrivers() for failure
svn path=/trunk/; revision=20866
This commit is contained in:
parent
24460a5027
commit
df36b0db90
1 changed files with 43 additions and 41 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue