- Fix execution in ShellExecute for files which have multiple dots

svn path=/trunk/; revision=37295
This commit is contained in:
Johannes Anderwald 2008-11-11 22:19:39 +00:00
parent ec4c2d1df2
commit 977ba0d1f6

View file

@ -566,7 +566,7 @@ UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpOperation,
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));