Skip to content

Commit 106960c

Browse files
committed
Check for null help URL
1 parent 3c92a79 commit 106960c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mist/mist.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ VOID CALLBACK MsgBoxHelpCallback(LPHELPINFO lpHelpInfo)
5656
{
5757
const char* helpUrl = (const char*)lpHelpInfo->dwContextId;
5858

59+
if (!helpUrl) {
60+
return;
61+
}
62+
5963
// It's recommended to initialize COM before calling ShellExecute()
6064
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
6165
ShellExecuteA(nullptr, "open", helpUrl, nullptr, nullptr, SW_SHOWNORMAL);

0 commit comments

Comments
 (0)