Module: wine Branch: master Commit: d182559161c2d5026c7fcc39533fd5a5f54e2981 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d182559161c2d5026c7fcc3953...
Author: Rob Shearman rob@codeweavers.com Date: Mon Feb 25 09:01:56 2008 +0000
shell32: Fix the character count passed to SearchPathW in SHELL_execute.
---
dlls/shell32/shlexec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c index 7cf0b03..f55e05c 100644 --- a/dlls/shell32/shlexec.c +++ b/dlls/shell32/shlexec.c @@ -1698,7 +1698,7 @@ BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc ) buffer[idx] = '\0';
/*FIXME This finds directory paths if the targeted file name contains spaces. */ - if (SearchPathW(*sei_tmp.lpDirectory? sei_tmp.lpDirectory: NULL, buffer, wszExe, sizeof(xlpFile), xlpFile, NULL)) + if (SearchPathW(*sei_tmp.lpDirectory? sei_tmp.lpDirectory: NULL, buffer, wszExe, sizeof(xlpFile)/sizeof(xlpFile[0]), xlpFile, NULL)) { /* separate out command from parameter string */ LPCWSTR p = space + 1;