--- trunk/reactos/subsys/system/winefile/winefile.c 2005-05-15 10:33:33 UTC (rev 15301)
+++ trunk/reactos/subsys/system/winefile/winefile.c 2005-05-15 11:10:32 UTC (rev 15302)
@@ -3366,8 +3366,16 @@
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);
set_curdir(child, entry, 0, child->hwnd);