From 2a46b799fcd42becd0a1c521edff8e0f14bc839d Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 29 May 2005 08:38:23 +0000 Subject: [PATCH] refresh display after executing a context menu command svn path=/trunk/; revision=15651 --- reactos/subsys/system/winefile/winefile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/winefile/winefile.c b/reactos/subsys/system/winefile/winefile.c index 3b6276bba1d..73d2932bb7d 100644 --- a/reactos/subsys/system/winefile/winefile.c +++ b/reactos/subsys/system/winefile/winefile.c @@ -4223,7 +4223,6 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam 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 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam /* 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); }