[SHELL32] Don't crash on an empty shortcut. CORE-12331 #resolve
authorMark Jansen <mark.jansen@reactos.org>
Thu, 17 Nov 2016 19:50:45 +0000 (19:50 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Thu, 17 Nov 2016 19:50:45 +0000 (19:50 +0000)
svn path=/trunk/; revision=73245

reactos/dll/win32/shell32/CShellLink.cpp

index 396389a..d2208a5 100644 (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))