summaryrefslogtreecommitdiff
path: root/archivers/p7zip/patches/patch-ab
blob: 74f371bf436403859f0a7659760721456a21ad8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ab,v 1.4 2005/04/15 14:16:08 wiz Exp $

--- Windows/FileFind.cpp.orig	2005-04-01 18:16:52.000000000 +0200
+++ Windows/FileFind.cpp
@@ -169,7 +169,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;