create_msvc: (littleboy) Fixed closing of search handle (should use FindClose instead of CloseHandle with handles from FindFirstFile)

svn-id: r46353
This commit is contained in:
Arnaud Boutonné 2009-12-12 20:54:28 +00:00
parent 90b4d4b45c
commit ef6eb34a22

View file

@ -1319,7 +1319,7 @@ FileList listDirectory(const std::string &dir) {
result.push_back(FSNode(fileInformation.cFileName, (fileInformation.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0));
} while (FindNextFile(fileHandle, &fileInformation) == TRUE);
CloseHandle(fileHandle);
FindClose(fileHandle);
#else
DIR *dirp = opendir(dir.c_str());
struct dirent *dp = NULL;