From ba43f28c682fc98290aa507751116e8b6504fe5e Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 15 May 2005 11:10:32 +0000 Subject: [PATCH] fix for window refresh in shell mode svn path=/trunk/; revision=15302 --- reactos/subsys/system/winefile/winefile.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/winefile/winefile.c b/reactos/subsys/system/winefile/winefile.c index bad4f158192..cbb1fc9e72f 100644 --- a/reactos/subsys/system/winefile/winefile.c +++ b/reactos/subsys/system/winefile/winefile.c @@ -3366,7 +3366,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, 0);