OSDN Git Service

Add work around to vista explore crash.
[tortoisegit/TortoiseGitJp.git] / src / TortoiseShell / ShellCache.h
index 593a0fa..761202b 100644 (file)
@@ -20,6 +20,7 @@
 #include "registry.h"\r
 #include "Globals.h"\r
 #include "GitAdminDir.h"\r
+#include "Git.h"\r
 \r
 #define REGISTRYTIMEOUT 2000\r
 #define EXCLUDELISTTIMEOUT 5000\r
@@ -152,7 +153,10 @@ public:
                        cachetype.read();\r
                }\r
                //return CacheType(DWORD((cachetype)));\r
-               /*TEMP: until TGitCache done*/return CacheType(DWORD((cachetype))) == exe ? dll : CacheType(DWORD((cachetype)));\r
+               /*TEMP: until TGitCache done*/\r
+               if(CGit::IsVista())\r
+                       return none;\r
+               return CacheType(DWORD((cachetype))) == exe ? dll : CacheType(DWORD((cachetype)));\r
        }\r
        DWORD BlockStatus()\r
        {\r