Browse Source

Bug fix: Configuration reading was broken after an attempt to access a non-existing sub-section within a section existed in raw configuration only

Source commit: 2c62787d00b360c9720f3753917544666861df30
Martin Prikryl 2 năm trước cách đây
mục cha
commit
46cacc3db3
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      source/core/HierarchicalStorage.cpp

+ 4 - 1
source/core/HierarchicalStorage.cpp

@@ -1186,7 +1186,10 @@ bool __fastcall TCustomIniFileStorage::OpenSubKey(const UnicodeString & Key, boo
   {
     if (FMasterStorageOpenFailures > 0)
     {
-      FMasterStorageOpenFailures++;
+      if (Result)
+      {
+        FMasterStorageOpenFailures++;
+      }
     }
     else
     {