Commit 309ae278 authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

Refresh display after executing a context menu command.

parent b58a098a
...@@ -4147,7 +4147,6 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam ...@@ -4147,7 +4147,6 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
idx = ListBox_GetCurSel(pane->hwnd); idx = ListBox_GetCurSel(pane->hwnd);
if (idx != -1) { if (idx != -1) {
HRESULT hr;
Entry* entry = (Entry*) ListBox_GetItemData(pane->hwnd, idx); Entry* entry = (Entry*) ListBox_GetItemData(pane->hwnd, idx);
LPITEMIDLIST pidl_abs = get_to_absolute_pidl(entry, hwnd); LPITEMIDLIST pidl_abs = get_to_absolute_pidl(entry, hwnd);
...@@ -4158,7 +4157,8 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam ...@@ -4158,7 +4157,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 */ /* get and use the parent folder to display correct context menu in all cases */
if (SUCCEEDED(SHBindToParent(pidl_abs, &IID_IShellFolder, (LPVOID*)&parentFolder, &pidlLast))) { 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); (*parentFolder->lpVtbl->Release)(parentFolder);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment