OSDN Git Service

Workaround Issue 73: Error while reading/writing the registry key MSysGit Access...
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Settings / SetMainPage.cpp
index a8e9e1c..96f4a43 100644 (file)
@@ -43,7 +43,7 @@ CSetMainPage::CSetMainPage()
        CString temp=CRegString(REG_MSYSGIT_INSTALL,_T(""),FALSE,HKEY_LOCAL_MACHINE);;\r
        if(!temp.IsEmpty())\r
                temp+=_T("bin");\r
-       m_regMsysGitPath = CRegString(REG_MSYSGIT_PATH,temp,FALSE,HKEY_LOCAL_MACHINE);\r
+       m_regMsysGitPath = CRegString(REG_MSYSGIT_PATH,temp,FALSE);\r
        m_regCheckNewer = CRegDWORD(_T("Software\\TortoiseGit\\CheckNewer"), TRUE);\r
        m_regLastCommitTime = CRegString(_T("Software\\Tigris.org\\Subversion\\Config\\miscellany\\use-commit-times"), _T(""));\r
        if ((GetEnvironmentVariable(_T("SVN_ASP_DOT_NET_HACK"), NULL, 0)==0)&&(GetLastError()==ERROR_ENVVAR_NOT_FOUND))\r