winefile: refresh after command execution

Martin Fuchs martin-fuchs at gmx.net
Sun May 29 05:22:05 CDT 2005


Changelog:
refresh display after executing a context menu command


Index: winefile.c
===================================================================
RCS file: /home/wine/wine/programs/winefile/winefile.c,v
retrieving revision 1.43
diff -u -p -d -r1.43 winefile.c
--- winefile.c	23 May 2005 10:26:47 -0000	1.43
+++ winefile.c	29 May 2005 10:21:22 -0000
@@ -3983,7 +3983,6 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd,
 			idx = ListBox_GetCurSel(pane->hwnd);
 
 			if (idx != -1) {
-				HRESULT hr;
 				Entry* entry = (Entry*) ListBox_GetItemData(pane->hwnd, idx);
 
 				LPITEMIDLIST pidl_abs = get_to_absolute_pidl(entry, hwnd);
@@ -3994,7 +3993,8 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd,
 
 					 /* get and use the parent folder to display correct context menu in all cases */
 					if (SUCCEEDED(SHBindToParent(pidl_abs, &IID_IShellFolder, (LPVOID*)&parentFolder, &pidlLast))) {
-						hr = ShellFolderContextMenu(parentFolder, hwnd, 1, &pidlLast, pt.x, pt.y);
+						if (SUCCEEDED(ShellFolderContextMenu(parentFolder, hwnd, 1, &pidlLast, pt.x, pt.y)))
+							refresh_child(child);
 
 						(*parentFolder->lpVtbl->Release)(parentFolder);
 					}






More information about the wine-patches mailing list