shell32: deal better with spaces in ASSOCSTR_COMMAND values
Alexandre Julliard
julliard at winehq.org
Thu Nov 19 09:37:05 CST 2009
Damjan Jovanovic <damjan.jov at gmail.com> writes:
> @@ -324,7 +324,14 @@ static HRESULT ASSOC_GetExecutable(IQueryAssociationsImpl *This,
> else
> {
> pszStart = pszCommand;
> - pszEnd = strchrW(pszStart, ' ');
> + for (pszEnd = pszStart; (pszEnd = strchrW(pszEnd, ' ')); pszEnd++)
> + {
> + WCHAR c = *pszEnd;
> + *pszEnd = 0;
> + if (SearchPathW(NULL, pszStart, NULL, pathlen, path, NULL))
> + break;
> + *pszEnd = c;
You have a redundant SearchPath call now.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list