OSDN Git Service

Fix Issue #89: Can't locate msysgit on x64
[tortoisegit/TortoiseGitJp.git] / src / Git / GitConfig.h
index 9abfd54..1892e55 100644 (file)
@@ -8,4 +8,9 @@ public:
 };\r
 \r
 #define REG_MSYSGIT_PATH _T("Software\\TortoiseGit\\MSysGit")\r
-#define REG_MSYSGIT_INSTALL _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Git_is1\\InstallLocation")
\ No newline at end of file
+\r
+#ifndef WIN64\r
+#define REG_MSYSGIT_INSTALL _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Git_is1\\InstallLocation")\r
+#else\r
+#define REG_MSYSGIT_INSTALL    _T("SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Git_is1\\InstallLocation")\r
+#endif
\ No newline at end of file