Fix Win64 when populating input file list

As identified by @b-desconocido, _findfirst has a return type of intptr_t;
this was previously being truncated to long.

Fix #185
This commit is contained in:
Ben Hymers 2016-02-20 15:46:22 +00:00
parent 0f8ebe285e
commit 7babde3103

View File

@ -35,7 +35,7 @@ void scanDirectoryAppend(const string& path, const string& ext, vector<string>&
string pathWithExt = path + "/*" + ext;
_finddata_t dir;
long fh = _findfirst(pathWithExt.c_str(), &dir);
intptr_t fh = _findfirst(pathWithExt.c_str(), &dir);
if (fh == -1L)
{
return;