Commit ae48e099 authored by Rich Ercolani's avatar Rich Ercolani Committed by Alexandre Julliard

winefile: Fix NULL pointer deref in read_tree.

parent 5e79b060
......@@ -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);
......
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