Invalidate the start value if start key doesn't exist.

svn path=/trunk/; revision=18498
This commit is contained in:
Hartmut Birr 2005-10-16 14:24:11 +00:00
parent 197d4d0964
commit ecdd18cbd0

View file

@ -439,6 +439,7 @@ FrLdrLoadBootDrivers(PCHAR szSystemRoot,
/* Read the Start Value */ /* Read the Start Value */
ValueSize = sizeof(ULONG); ValueSize = sizeof(ULONG);
rc = RegQueryValue(hDriverKey, "Start", &ValueType, (PUCHAR)&StartValue, &ValueSize); rc = RegQueryValue(hDriverKey, "Start", &ValueType, (PUCHAR)&StartValue, &ValueSize);
if (rc != ERROR_SUCCESS) StartValue = (ULONG)-1;
DbgPrint((DPRINT_REACTOS, " Start: %x \n", (int)StartValue)); DbgPrint((DPRINT_REACTOS, " Start: %x \n", (int)StartValue));
/* Read the Tag */ /* Read the Tag */
@ -511,6 +512,7 @@ FrLdrLoadBootDrivers(PCHAR szSystemRoot,
/* Read the Start Value */ /* Read the Start Value */
ValueSize = sizeof(ULONG); ValueSize = sizeof(ULONG);
rc = RegQueryValue(hDriverKey, "Start", &ValueType, (PUCHAR)&StartValue, &ValueSize); rc = RegQueryValue(hDriverKey, "Start", &ValueType, (PUCHAR)&StartValue, &ValueSize);
if (rc != ERROR_SUCCESS) StartValue = (ULONG)-1;
DbgPrint((DPRINT_REACTOS, " Start: %x \n", (int)StartValue)); DbgPrint((DPRINT_REACTOS, " Start: %x \n", (int)StartValue));
/* Read the Tag */ /* Read the Tag */