From 3da93e5194576f2eeb68d160130fc56ce6554a0b Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Mon, 6 Dec 2010 21:33:44 +0000 Subject: [PATCH] FindClose fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5949 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/stream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/stream.cpp b/source/src/stream.cpp index 61e59154..3974c73d 100644 --- a/source/src/stream.cpp +++ b/source/src/stream.cpp @@ -251,6 +251,7 @@ bool listdir(const char *dir, const char *ext, vector &files) do { files.add(newstring(FindFileData.cFileName, (int)strlen(FindFileData.cFileName) - extsize)); } while(FindNextFile(Find, &FindFileData)); + FindClose(Find); return true; } #else