Skip to content

Commit b0c1d9a

Browse files
committed
Fix for potential crash introduced in 1b013c3
Fixes #1245
1 parent ac80080 commit b0c1d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/StartMenu/StartMenuDLL/MenuCommands.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2812,7 +2812,7 @@ void CMenuContainer::ActivateItem( int index, TActivateType type, const POINT *p
28122812
info.fMask|=CMIC_MASK_NOASYNC; // wait for delete/link commands to finish so we can refresh the menu
28132813

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

28182818
s_bPreventClosing=true;

0 commit comments

Comments
 (0)