Commit 1b025eb0 authored by Alexandre Julliard's avatar Alexandre Julliard

explorer: Avoid crash on empty Start Menu folders.

parent 03b06fb7
......@@ -464,8 +464,8 @@ void do_startmenu(HWND hwnd)
if (!public_startmenu.folder)
pidl_to_shellfolder(public_startmenu.pidl, NULL, &public_startmenu.folder);
if (!shell_folder_is_empty(user_startmenu.folder) ||
!shell_folder_is_empty(public_startmenu.folder))
if ((user_startmenu.folder && !shell_folder_is_empty(user_startmenu.folder)) ||
(public_startmenu.folder && !shell_folder_is_empty(public_startmenu.folder)))
{
fill_menu(&user_startmenu);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment