XTLDR Rewrite #7

Fusionnée
belliash a fusionné 184 révision(s) à partir de xtldr_rewrite vers master 2024-01-09 18:51:04 +01:00
Affiche uniquement les changements de la révision fbcf952dad - Afficher toutes les révisions

Voir le fichier

@@ -451,6 +451,18 @@ BlpParseConfigFile(IN CONST PCHAR RawConfig,
return Status;
}
/* Remove leading quotes from the value */
if(*Value == '"' || *Value == '\'')
{
Value++;
}
/* Remove trailing quotes from the value */
if(Value[ValueLength - 2] == '"' || Value[ValueLength - 2] == '\'')
{
Value[ValueLength - 2] = 0;
}
/* Initialize new option and add it to the list */
RtlStringToWideString(Option->Name, &Key, RtlStringLength(Key, 0) + 1);
RtlStringToWideString(Option->Value, &Value, RtlStringLength(Value, 0) + 1);