OSDN Git Service

Fix 'Explore To' in context menu in Commit Dialog
authorColin Law <colin@clanlaw.org.uk>
Mon, 2 Feb 2009 17:01:23 +0000 (17:01 +0000)
committerFrank Li <lznuaa@gmail.com>
Tue, 3 Feb 2009 09:43:10 +0000 (17:43 +0800)
Pass directory containing file to ShellExecute rather than filename

src/Git/GitStatusListCtrl.cpp

index 4357bb3..7d4c8d6 100644 (file)
@@ -2673,7 +2673,7 @@ void CGitStatusListCtrl::OnContextMenuList(CWnd * pWnd, CPoint point)
                                break;\r
                        case IDSVNLC_EXPLORE:\r
                                {\r
-                                       ShellExecute(this->m_hWnd, _T("explore"), filepath->GetWinPath(), NULL, NULL, SW_SHOW);\r
+                                       ShellExecute(this->m_hWnd, _T("explore"), filepath->GetDirectory().GetWinPath(), NULL, NULL, SW_SHOW);\r
                                }\r
                                break;\r
                        case IDSVNLC_COMPARE:\r