winefile: Fix collapsing when there's no parent directory.
This commit is contained in:
parent
0352a7089c
commit
7476bb0556
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue