浏览代码

Comment on purpose of used of ValueExists when reading registry values

Source commit: 2f46b348464a667987d8093deed1104ae0fb9b2a
Martin Prikryl 6 年之前
父节点
当前提交
c9ff171f70
共有 1 个文件被更改,包括 1 次插入0 次删除
  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; } \