explorer: Avoid crash on empty Start Menu folders.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
03b06fb76b
commit
1b025eb0b5
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue