X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fboot%2Ffreeldr%2Ffreeldr%2Freactos%2Freactos.c;h=f3c37d8269228c85d56a4aca34993eef3b94f1a0;hp=d6f6813ddcc76b402ec599bdbbe9a23dcb618a2a;hb=ecdd18cbd0d7a0d52c0db4844ea55c903c5961c9;hpb=197d4d0964f1491a20c4ef45eafcc68c1fed7c22 diff --git a/reactos/boot/freeldr/freeldr/reactos/reactos.c b/reactos/boot/freeldr/freeldr/reactos/reactos.c index d6f6813ddcc..f3c37d82692 100644 --- a/reactos/boot/freeldr/freeldr/reactos/reactos.c +++ b/reactos/boot/freeldr/freeldr/reactos/reactos.c @@ -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 */