Sfoglia il codice sorgente

Comment on purpose of used of ValueExists when reading registry values

Source commit: 2f46b348464a667987d8093deed1104ae0fb9b2a
Martin Prikryl 6 anni fa
parent
commit
c9ff171f70
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      source/core/HierarchicalStorage.cpp

+ 1 - 0
source/core/HierarchicalStorage.cpp

@@ -13,6 +13,7 @@
 //---------------------------------------------------------------------------
 #pragma package(smart_init)
 //---------------------------------------------------------------------------
+// ValueExists test was probably added to avoid registry exceptions when debugging
 #define READ_REGISTRY(Method) \
   if (FRegistry->ValueExists(Name)) \
   try { return FRegistry->Method(Name); } catch(...) { return Default; } \