explorer: Avoid crash on empty Start Menu folders.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2016-06-10 13:47:02 +09:00
parent 03b06fb76b
commit 1b025eb0b5
1 changed files with 2 additions and 2 deletions

View File

@ -464,8 +464,8 @@ void do_startmenu(HWND hwnd)
if (!public_startmenu.folder) if (!public_startmenu.folder)
pidl_to_shellfolder(public_startmenu.pidl, NULL, &public_startmenu.folder); pidl_to_shellfolder(public_startmenu.pidl, NULL, &public_startmenu.folder);
if (!shell_folder_is_empty(user_startmenu.folder) || if ((user_startmenu.folder && !shell_folder_is_empty(user_startmenu.folder)) ||
!shell_folder_is_empty(public_startmenu.folder)) (public_startmenu.folder && !shell_folder_is_empty(public_startmenu.folder)))
{ {
fill_menu(&user_startmenu); fill_menu(&user_startmenu);