19 Nov
2009
19 Nov
'09
9:37 a.m.
Damjan Jovanovic <damjan.jov(a)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(a)winehq.org