From: Mark Jansen Date: Thu, 17 Nov 2016 19:50:45 +0000 (+0000) Subject: [SHELL32] Don't crash on an empty shortcut. CORE-12331 #resolve X-Git-Tag: ReactOS-0.4.4-FOSDEM2017~290 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=20421c1d4918bb2fa9c914575e0fd1c72f0ff05c [SHELL32] Don't crash on an empty shortcut. CORE-12331 #resolve svn path=/trunk/; revision=73245 --- diff --git a/reactos/dll/win32/shell32/CShellLink.cpp b/reactos/dll/win32/shell32/CShellLink.cpp index 396389aed1a..d2208a5b52d 100644 --- a/reactos/dll/win32/shell32/CShellLink.cpp +++ b/reactos/dll/win32/shell32/CShellLink.cpp @@ -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))