Author: janderwald
Date: Tue Nov 11 16:19:39 2008
New Revision: 37295
URL:
http://svn.reactos.org/svn/reactos?rev=37295&view=rev
Log:
- Fix execution in ShellExecute for files which have multiple dots
Modified:
trunk/reactos/dll/win32/shell32/shlexec.c
Modified: trunk/reactos/dll/win32/shell32/shlexec.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shlexec.…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shlexec.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shlexec.c [iso-8859-1] Tue Nov 11 16:19:39 2008
@@ -566,7 +566,7 @@
else
{
/* First thing we need is the file's extension */
- extension = wcschr(xlpFile, '.'); /* Assume last "." is the
one; */
+ extension = wcsrchr(xlpFile, '.'); /* Assume last "." is the
one; */
/* File->Run in progman uses */
/* .\FILE.EXE :( */
TRACE("xlpFile=%s,extension=%s\n", debugstr_w(xlpFile),
debugstr_w(extension));