- fix resource leaks CID 716324, 716323, 716322, 716321, 716320, 716319, 716318

svn path=/trunk/; revision=64871
This commit is contained in:
Kamil Hornicek 2014-10-21 16:05:54 +00:00
parent 8d45f7ba25
commit cd1f57b5d4
4 changed files with 18 additions and 2 deletions

View file

@ -382,7 +382,10 @@ BOOL DeleteFolder(LPTSTR FileName)
{
SetFileAttributes(TempFileName,FILE_ATTRIBUTE_NORMAL);
if (!DeleteFile(TempFileName))
{
FindClose (hFile);
return 0;
}
}
}while (FindNextFile (hFile, &f));