Author: khornicek
Date: Sat Dec 20 14:48:08 2008
New Revision: 38202
URL:
http://svn.reactos.org/svn/reactos?rev=38202&view=rev
Log:
- add check for NULL pointer, "first" is NULL for folders, files without
extension etc. see bug 3959
See issue #3959 for more details.
Modified:
trunk/reactos/dll/cpl/appwiz/createlink.c
Modified: trunk/reactos/dll/cpl/appwiz/createlink.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/appwiz/createlink.…
==============================================================================
--- trunk/reactos/dll/cpl/appwiz/createlink.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/appwiz/createlink.c [iso-8859-1] Sat Dec 20 14:48:08 2008
@@ -155,7 +155,9 @@
first[1] = L'\0';
first = wcsrchr(pContext->szDescription, L'.');
- first[0] = L'\0';
+
+ if(first)
+ first[0] = L'\0';
}
}