From 106960cbb5509705535ee0b87482405cdd8fa700 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 4 Jan 2019 23:06:37 -0800 Subject: [PATCH] Check for null help URL --- mist/mist.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mist/mist.cpp b/mist/mist.cpp index 31f30e3..956bd5c 100644 --- a/mist/mist.cpp +++ b/mist/mist.cpp @@ -56,6 +56,10 @@ VOID CALLBACK MsgBoxHelpCallback(LPHELPINFO lpHelpInfo) { const char* helpUrl = (const char*)lpHelpInfo->dwContextId; + if (!helpUrl) { + return; + } + // It's recommended to initialize COM before calling ShellExecute() CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE); ShellExecuteA(nullptr, "open", helpUrl, nullptr, nullptr, SW_SHOWNORMAL);