[SHELL32] Don't crash on an empty shortcut. CORE-12331 #resolve

svn path=/trunk/; revision=73245
This commit is contained in:
Mark Jansen 2016-11-17 19:50:45 +00:00
parent 81047f4a8b
commit 20421c1d49

View file

@ -1916,7 +1916,7 @@ HRESULT WINAPI CShellLink::InvokeCommand(LPCMINVOKECOMMANDINFO lpici)
sei.lpVerb = L"open";
// HACK for ShellExecuteExW
if (wcsstr(sPath, L".cpl"))
if (sPath && wcsstr(sPath, L".cpl"))
sei.lpVerb = L"cplopen";
if (ShellExecuteExW(&sei))