Explorer++ patch for TortoiseSVN

Windows環境をx64に移行したら、TortoiseSVNのオーバーレイアイコンに対応したファイラーが見当たらず、やや不便。
幸いExplorer++というソースが公開されているものがあったので、アイコンを更新するようにしてみた。

diff -Naur org/Explorer++/ShellBrowser/DirectoryModificationHandler.cpp new/Explorer++/ShellBrowser/DirectoryModificationHandler.cpp
--- org/Explorer++/ShellBrowser/DirectoryModificationHandler.cpp	2011-04-23 07:43:20 +0900
+++ new/Explorer++/ShellBrowser/DirectoryModificationHandler.cpp	2011-08-27 02:41:54 +0900
@@ -448,6 +452,10 @@
 			}
 
 			FindClose(hFirstFile);
+
+			if (!bFolder) {
+				RenameItem(iItemInternal, FileName);
+			}
 		}
 		else
 		{


ついでに、ドラッグアンドドロップを禁止してみた。フォルダをクリックしようとして移動してしまうことがあるので。(というかそれを防ぐためにファイラーを使っている)

diff -Naur org/Explorer++/Explorer++/ListViewHandler.cpp new/Explorer++/Explorer++/ListViewHandler.cpp
--- org/Explorer++/Explorer++/ListViewHandler.cpp	2011-08-15 00:19:54 +0900
+++ new/Explorer++/Explorer++/ListViewHandler.cpp	2011-08-27 01:20:05 +0900
@@ -1384,6 +1384,9 @@
 
 HRESULT Explorerplusplus::OnListViewBeginDrag(LPARAM lParam,DragTypes_t DragType)
 {
+#if 1
+	HRESULT hr = DRAGDROP_S_CANCEL;
+#else
 	IDropSource			*pDropSource = NULL;
 	IDragSourceHelper	*pDragSourceHelper = NULL;
 	NMLISTVIEW			*pnmlv = NULL;
@@ -1491,6 +1494,7 @@
 	}
 
 	CoTaskMemFree(pidlDirectory);
+#endif
 
 	return hr;
 }
diff -Naur org/Explorer++/Explorer++/TreeViewHandler.cpp new/Explorer++/Explorer++/TreeViewHandler.cpp
--- org/Explorer++/Explorer++/TreeViewHandler.cpp	2011-04-26 11:51:32 +0900
+++ new/Explorer++/Explorer++/TreeViewHandler.cpp	2011-08-27 01:21:19 +0900
@@ -635,10 +635,12 @@
 		return OnTreeViewKeyDown(lParam);
 		break;
 
+#if 0
 	case TVN_BEGINDRAG:
 		/* Forward the message to the treeview for it to handle. */
 		SendMessage(m_hTreeView,WM_NOTIFY,0,lParam);
 		break;
+#endif
 
 	case TVN_GETDISPINFO:
 		SendMessage(m_hTreeView,WM_NOTIFY,0,lParam);