Damjan Jovanovic damjan.jov@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.