aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorArnaud Boutonné2009-12-12 20:54:28 +0000
committerArnaud Boutonné2009-12-12 20:54:28 +0000
commitef6eb34a22eed9beefc740132a40fd630d37941b (patch)
treee55960c5b0cdb35142844ab9b133a98bab6925cc /tools
parent90b4d4b45c662dbf3c829ef6cfdbed87f88f0326 (diff)
downloadscummvm-rg350-ef6eb34a22eed9beefc740132a40fd630d37941b.tar.gz
scummvm-rg350-ef6eb34a22eed9beefc740132a40fd630d37941b.tar.bz2
scummvm-rg350-ef6eb34a22eed9beefc740132a40fd630d37941b.zip
create_msvc: (littleboy) Fixed closing of search handle (should use FindClose instead of CloseHandle with handles from FindFirstFile)
svn-id: r46353
Diffstat (limited to 'tools')
-rw-r--r--tools/create_msvc/create_msvc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/create_msvc/create_msvc.cpp b/tools/create_msvc/create_msvc.cpp
index 5fa7af2665..62ad3267ac 100644
--- a/tools/create_msvc/create_msvc.cpp
+++ b/tools/create_msvc/create_msvc.cpp
@@ -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;