projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
81047f4
)
[SHELL32] Don't crash on an empty shortcut. CORE-12331 #resolve
author
Mark Jansen
<mark.jansen@reactos.org>
Thu, 17 Nov 2016 19:50:45 +0000
(19:50 +0000)
committer
Mark 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
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/shell32/CShellLink.cpp
b/reactos/dll/win32/shell32/CShellLink.cpp
index
396389a
..
d2208a5
100644
(file)
--- 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
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))
sei.lpVerb = L"cplopen";
if (ShellExecuteExW(&sei))