André Hentschel : winefile: Fix collapsing when there' s no parent directory.
Module: wine Branch: master Commit: 7476bb0556de553e690367e4d2faff994cd57457 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7476bb0556de553e690367e4d2... Author: André Hentschel <nerv(a)dawncrow.de> Date: Tue Feb 14 19:33:54 2012 +0100 winefile: Fix collapsing when there's no parent directory. --- programs/winefile/winefile.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 63ce463..52e1bc4 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -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);
participants (1)
-
Alexandre Julliard