fix Win64 bug in FileInfo
This commit is contained in:
parent
5bdfe81488
commit
f260a0f219
|
@ -522,15 +522,16 @@ std::vector<Base::FileInfo> FileInfo::getDirectoryContent(void) const
|
|||
{
|
||||
std::vector<Base::FileInfo> 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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user