mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 00:45:43 +00:00
Invalidate the start value if start key doesn't exist.
svn path=/trunk/; revision=18498
This commit is contained in:
parent
197d4d0964
commit
ecdd18cbd0
1 changed files with 3 additions and 1 deletions
|
@ -439,6 +439,7 @@ FrLdrLoadBootDrivers(PCHAR szSystemRoot,
|
|||
/* Read the Start Value */
|
||||
ValueSize = sizeof(ULONG);
|
||||
rc = RegQueryValue(hDriverKey, "Start", &ValueType, (PUCHAR)&StartValue, &ValueSize);
|
||||
if (rc != ERROR_SUCCESS) StartValue = (ULONG)-1;
|
||||
DbgPrint((DPRINT_REACTOS, " Start: %x \n", (int)StartValue));
|
||||
|
||||
/* Read the Tag */
|
||||
|
@ -486,7 +487,7 @@ FrLdrLoadBootDrivers(PCHAR szSystemRoot,
|
|||
} else {
|
||||
|
||||
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++;
|
||||
|
@ -511,6 +512,7 @@ FrLdrLoadBootDrivers(PCHAR szSystemRoot,
|
|||
/* Read the Start Value */
|
||||
ValueSize = sizeof(ULONG);
|
||||
rc = RegQueryValue(hDriverKey, "Start", &ValueType, (PUCHAR)&StartValue, &ValueSize);
|
||||
if (rc != ERROR_SUCCESS) StartValue = (ULONG)-1;
|
||||
DbgPrint((DPRINT_REACTOS, " Start: %x \n", (int)StartValue));
|
||||
|
||||
/* Read the Tag */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue