Skip to content

Commit

Permalink
Fix for potential crash introduced in 1b013c3
Browse files Browse the repository at this point in the history
Fixes #1245
  • Loading branch information
ge0rdi committed Dec 14, 2022
1 parent ac80080 commit b0c1d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/StartMenu/StartMenuDLL/MenuCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2812,7 +2812,7 @@ void CMenuContainer::ActivateItem( int index, TActivateType type, const POINT *p
info.fMask|=CMIC_MASK_NOASYNC; // wait for delete/link commands to finish so we can refresh the menu

// we don't want our virtual folder to appear in Explorer's frequent list
if (wcsncmp(item.pItemInfo->PATH, L"::{82E749ED-B971-4550-BAF7-06AA2BF7E836}", 40) == 0)
if (item.pItemInfo && wcsncmp(item.pItemInfo->PATH, L"::{82E749ED-B971-4550-BAF7-06AA2BF7E836}", 40) == 0)
info.fMask &= ~CMIC_MASK_FLAG_LOG_USAGE;

s_bPreventClosing=true;
Expand Down

0 comments on commit b0c1d9a

Please sign in to comment.