Commit 7476bb05 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winefile: Fix collapsing when there's no parent directory.

parent 0352a708
......@@ -3563,7 +3563,10 @@ static BOOL expand_entry(ChildWnd* child, Entry* dir)
static void collapse_entry(Pane* pane, Entry* dir)
{
int idx = SendMessageW(pane->hwnd, LB_FINDSTRING, 0, (LPARAM)dir);
int idx;
if (!dir) return;
idx = SendMessageW(pane->hwnd, LB_FINDSTRING, 0, (LPARAM)dir);
ShowWindow(pane->hwnd, SW_HIDE);
......
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