Make sure config list is not empty before trying to access it
Todas las comprobaciones han sido exitosas
Builds / ExectOS (amd64) (push) Successful in 40s
Builds / ExectOS (i686) (push) Successful in 28s

Este commit está contenido en:
2023-12-21 20:02:02 +01:00
padre 093ef010c8
commit 782e6e3987

Ver fichero

@@ -30,6 +30,9 @@ BlGetConfigValue(IN CONST PWCHAR ConfigName)
/* Get config entry name length */
Length = RtlWideStringLength(ConfigName, 0);
/* Make sure config list is not empty */
if(BlpConfig != NULL)
{
/* Iterate through config entries */
ConfigListEntry = BlpConfig->Flink;
while(ConfigListEntry != BlpConfig)
@@ -47,6 +50,7 @@ BlGetConfigValue(IN CONST PWCHAR ConfigName)
/* Move to the next config entry */
ConfigListEntry = ConfigListEntry->Flink;
}
}
/* Config entry not found, return NULL */
return NULL;