mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 01:43:37 +00:00
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)
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue