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:
parent
90b4d4b45c
commit
ef6eb34a22
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue