如题,代码如下:
BOOL bFound = finder.FindFile(strDir);
while (bFound)
{
bFound = finder.FindNextFile();
if (finder.IsDots())
{
continue;
}
strPath = finder.GetFilePath();
if (finder.IsDirectory())
{
// find a sub-folder, check it recusively
if (....)
{
return TRUE;
}
}
else
{   
if (......)
{
return TRUE;
}
}
}
finder.Close();
return FALSE;这段代码在几个if语句中的return前没有加finder.Close()算不算是bug?会不会影响到程序的效率?