OSDN Git Service

Reduce application startup time by reducing the number of open-close of HKEY (2)
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 3 Feb 2019 02:56:02 +0000 (11:56 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 3 Feb 2019 02:56:02 +0000 (11:56 +0900)
(Anti-virus software makes creating the handle of registry key slow)

Src/Common/RegOptionsMgr.h

index 63df713..95418d9 100644 (file)
@@ -17,7 +17,7 @@ class COptionsMgr;
 class CRegOptionsMgr: public COptionsMgr
 {
 public:
-       CRegOptionsMgr() : m_serializing(true), m_bCloseHandle(true) { }
+       CRegOptionsMgr() : m_serializing(true), m_bCloseHandle(false) { }
        virtual ~CRegOptionsMgr() { }
        int LoadOption(const String& name);
        int SetRegRootKey(const String& path);