mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2025-07-03 08:15:40 +00:00
Check for null help URL
This commit is contained in:
parent
3c92a79fe2
commit
106960cbb5
@ -56,6 +56,10 @@ VOID CALLBACK MsgBoxHelpCallback(LPHELPINFO lpHelpInfo)
|
|||||||
{
|
{
|
||||||
const char* helpUrl = (const char*)lpHelpInfo->dwContextId;
|
const char* helpUrl = (const char*)lpHelpInfo->dwContextId;
|
||||||
|
|
||||||
|
if (!helpUrl) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// It's recommended to initialize COM before calling ShellExecute()
|
// It's recommended to initialize COM before calling ShellExecute()
|
||||||
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
|
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
|
||||||
ShellExecuteA(nullptr, "open", helpUrl, nullptr, nullptr, SW_SHOWNORMAL);
|
ShellExecuteA(nullptr, "open", helpUrl, nullptr, nullptr, SW_SHOWNORMAL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user