Fixed a memory leak.

This commit is contained in:
Mike McCormack 2003-09-22 19:46:32 +00:00 committed by Alexandre Julliard
parent ac57fc20b6
commit 7dc3ece222

View file

@ -1199,7 +1199,10 @@ static BOOL WINAPI SHLWAPI_PathFindInOtherDirs(LPWSTR lpszFile, DWORD dwWhich)
lpszCurr = NULL; /* Last Path, terminate after this */
if (!PathAppendW(buff, lpszFile))
{
free(lpszPATH);
return FALSE;
}
if (PathFileExistsDefExtW(buff, dwWhich))
{
strcpyW(lpszFile, buff);