refresh display after executing a context menu command
Modified: trunk/reactos/subsys/system/winefile/winefile.c

Modified: trunk/reactos/subsys/system/winefile/winefile.c
--- trunk/reactos/subsys/system/winefile/winefile.c	2005-05-29 07:29:59 UTC (rev 15650)
+++ trunk/reactos/subsys/system/winefile/winefile.c	2005-05-29 08:38:23 UTC (rev 15651)
@@ -4223,7 +4223,6 @@
 			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);
@@ -4234,7 +4233,8 @@
 
 					 /* 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);
 					}