From f260a0f219e434f5b4ae7194619da2edabd7de46 Mon Sep 17 00:00:00 2001 From: jriegel Date: Wed, 27 Aug 2014 22:22:29 +0200 Subject: [PATCH] fix Win64 bug in FileInfo --- src/Base/FileInfo.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Base/FileInfo.cpp b/src/Base/FileInfo.cpp index 6e8119f0c..78d869606 100644 --- a/src/Base/FileInfo.cpp +++ b/src/Base/FileInfo.cpp @@ -522,15 +522,16 @@ std::vector FileInfo::getDirectoryContent(void) const { std::vector List; #if defined (FC_OS_WIN32) - struct _wfinddata_t dentry; - long hFile; + struct _wfinddata_t dentry; + + intptr_t hFile; // Find first directory entry std::wstring wstr = toStdWString(); wstr += L"/*"; if ((hFile = _wfindfirst( wstr.c_str(), &dentry)) == -1L) - return List; + return List; while (_wfindnext(hFile, &dentry) == 0) if (wcscmp(dentry.name,L"..") != 0)