From 2a3ece86a68994b9950fea21b9153d59ce4802e9 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Thu, 7 Jul 2005 20:27:24 +0000 Subject: [PATCH] - move ID_ABOUT_WINE into #ifdef __WINE__ - support for refresh in shell namespace windows --- programs/winefile/winefile.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 819fee27ea9..4b6ff6b1be0 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -2386,11 +2386,11 @@ static LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM case ID_NO_WARRANTY: WineWarranty(Globals.hMainWnd); break; -#endif case ID_ABOUT_WINE: ShellAbout(hwnd, RS(b2,IDS_WINE), RS(b1,IDS_WINEFILE), 0); break; +#endif case ID_ABOUT: ShellAbout(hwnd, RS(b1,IDS_WINEFILE), NULL, 0); @@ -3729,7 +3729,15 @@ static void refresh_child(ChildWnd* child) scan_entry(child, &child->root.entry, 0, child->hwnd); - entry = read_tree(&child->root, path, NULL, drv, child->sortOrder, child->hwnd); +#ifdef _SHELL_FOLDERS + if (child->root.entry.etype == ET_SHELL) + entry = read_tree(&child->root, NULL, get_path_pidl(path,child->hwnd), drv, child->sortOrder, child->hwnd); + else +#endif + entry = read_tree(&child->root, path, NULL, drv, child->sortOrder, child->hwnd); + + if (!entry) + entry = &child->root.entry; insert_entries(&child->left, child->root.entry.down, NULL, TF_ALL, 0); -- 2.11.4.GIT