X-Git-Url: https://code.delx.au/refind/blobdiff_plain/dcbecb59b62d07f29d4d6a6ed2212143d0664525..83d9696df1452690a2a7cb2c17208feaee3e411f:/refind/config.c diff --git a/refind/config.c b/refind/config.c index cc0a931..92ef5a6 100644 --- a/refind/config.c +++ b/refind/config.c @@ -361,6 +361,8 @@ VOID ReadConfig(CHAR16 *FileName) GlobalConfig.DontScanDirs = SelfPath; MyFreePool(GlobalConfig.DontScanFiles); GlobalConfig.DontScanFiles = StrDuplicate(DONT_SCAN_FILES); + MyFreePool(GlobalConfig.DontScanVolumes); + GlobalConfig.DontScanVolumes = StrDuplicate(DONT_SCAN_VOLUMES); } // if if (!FileExists(SelfDir, FileName)) { @@ -424,7 +426,6 @@ VOID ReadConfig(CHAR16 *FileName) HandleStrings(TokenList, TokenCount, &(GlobalConfig.AlsoScan)); } else if ((StriCmp(TokenList[0], L"don't_scan_volumes") == 0) || (StriCmp(TokenList[0], L"dont_scan_volumes") == 0)) { - HandleStrings(TokenList, TokenCount, &(GlobalConfig.AlsoScan)); // Note: Don't use HandleStrings() because it modifies slashes, which might be present in volume name MyFreePool(GlobalConfig.DontScanVolumes); GlobalConfig.DontScanVolumes = NULL;