From 977ba0d1f63c8a71f3deb6f3310b3de291177759 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Tue, 11 Nov 2008 22:19:39 +0000 Subject: [PATCH] - Fix execution in ShellExecute for files which have multiple dots svn path=/trunk/; revision=37295 --- reactos/dll/win32/shell32/shlexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/shell32/shlexec.c b/reactos/dll/win32/shell32/shlexec.c index 63044eb76a3..04c6a685cf9 100644 --- a/reactos/dll/win32/shell32/shlexec.c +++ b/reactos/dll/win32/shell32/shlexec.c @@ -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));