mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +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 */
|
/* open driver Key */
|
||||||
rc = RegOpenKey(hServiceKey, ServiceName, &hDriverKey);
|
rc = RegOpenKey(hServiceKey, ServiceName, &hDriverKey);
|
||||||
|
if (rc == ERROR_SUCCESS)
|
||||||
|
{
|
||||||
/* Read the Start Value */
|
/* Read the Start Value */
|
||||||
ValueSize = sizeof(ULONG);
|
ValueSize = sizeof(ULONG);
|
||||||
rc = RegQueryValue(hDriverKey, L"Start", &ValueType, (PUCHAR)&StartValue, &ValueSize);
|
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",
|
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));
|
ServiceName, StartValue, TagValue, DriverGroup, OrderList[TagIndex], GroupName));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Index++;
|
Index++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue