X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=rosapps%2Fapplications%2Fwinfile%2Fwinefile.c;h=2caff8e980f8d3400167228c5b28c99abe105898;hp=b3e5471fcd45d7258ded96ff79b518af95933e18;hb=478947654c074b2520ded0207de7d874d84ff543;hpb=6e08f16ab12e3127827acd0ddd07c4b4d8c1afdd;ds=sidebyside diff --git a/rosapps/applications/winfile/winefile.c b/rosapps/applications/winfile/winefile.c index b3e5471fcd4..2caff8e980f 100644 --- a/rosapps/applications/winfile/winefile.c +++ b/rosapps/applications/winfile/winefile.c @@ -3781,8 +3781,15 @@ static void refresh_child(ChildWnd* child) scan_entry(child, &child->root.entry, 0, 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); + { + LPITEMIDLIST local_pidl = get_path_pidl(path,child->hwnd); + if (local_pidl) + entry = read_tree(&child->root, NULL, local_pidl , drv, child->sortOrder, child->hwnd); + else + entry = NULL; + } else #endif entry = read_tree(&child->root, path, NULL, drv, child->sortOrder, child->hwnd);