Do not call closedir on directories that failed to open. Avoids crash bug. Thanks to Netocrat.

darcs-hash:20060811092639-ac50b-6615f51aad8c2a81917db08e2dc8f4da3d7db2ef.gz
This commit is contained in:
axel 2006-08-11 19:26:39 +10:00
parent 7ff76476ed
commit 7fadf6c083

View File

@ -136,7 +136,10 @@ static int is_potential_path( const wchar_t *path )
{
dir = wopendir( unescaped );
res = !!dir;
closedir( dir );
if( dir )
{
closedir( dir );
}
}
else
{