blob: a30fc9a6d08b7cd580393f4ad99f7b9de8782438 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-ab,v 1.6 2005/06/24 14:32:13 wiz Exp $
--- Windows/FileFind.cpp.orig 2005-06-04 09:52:52.000000000 +0200
+++ Windows/FileFind.cpp
@@ -190,7 +190,8 @@ bool CFindFile::FindFirst(LPCTSTR wildca
}
TRACEN((printf("CFindFile::FindFirst : closedir-2(dirp=%p)\n",_dirp)))
- closedir(_dirp);
+ if (_dirp)
+ closedir(_dirp);
_dirp = 0;
SetLastError( ERROR_NO_MORE_FILES );
return false;
|