From 2f38ab31b4a830b78e26e964f019e0536d5f482c Mon Sep 17 00:00:00 2001 From: Frank Li Date: Sun, 8 Feb 2009 11:13:17 +0800 Subject: [PATCH] Add setting cache type to control if load wingit.dll Signed-off-by: Frank Li --- src/Git/Git.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Git/Git.cpp b/src/Git/Git.cpp index 3b9ad9a..6b880c1 100644 --- a/src/Git/Git.cpp +++ b/src/Git/Git.cpp @@ -128,6 +128,13 @@ BOOL wgEnumFiles_safe(const char *pszProjectPath, const char *pszSubPath, unsign BOOL CGit::IsVista() { + + if( CRegStdWORD(_T("Software\\TortoiseGit\\CacheType") ) == 0) + { + g_IsWingitDllload=FALSE; + return TRUE; + } + OSVERSIONINFO osvi; BOOL bIsWindowsXPorLater; -- 2.11.0