Author: mjansen
Date: Thu Nov 17 19:50:45 2016
New Revision: 73245
URL:
http://svn.reactos.org/svn/reactos?rev=73245&view=rev
Log:
[SHELL32] Don't crash on an empty shortcut. CORE-12331 #resolve
Modified:
trunk/reactos/dll/win32/shell32/CShellLink.cpp
Modified: trunk/reactos/dll/win32/shell32/CShellLink.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/CShellLi…
==============================================================================
--- trunk/reactos/dll/win32/shell32/CShellLink.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/CShellLink.cpp [iso-8859-1] Thu Nov 17 19:50:45 2016
@@ -1916,7 +1916,7 @@
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))