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

oldstable
André Hentschel 2012-02-14 19:33:54 +01:00 committed by Alexandre Julliard
parent 0352a7089c
commit 7476bb0556
1 changed files with 4 additions and 1 deletions

View File

@ -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);