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:
parent
0f8ebe285e
commit
7babde3103
@ -35,7 +35,7 @@ void scanDirectoryAppend(const string& path, const string& ext, vector<string>&
|
|||||||
string pathWithExt = path + "/*" + ext;
|
string pathWithExt = path + "/*" + ext;
|
||||||
|
|
||||||
_finddata_t dir;
|
_finddata_t dir;
|
||||||
long fh = _findfirst(pathWithExt.c_str(), &dir);
|
intptr_t fh = _findfirst(pathWithExt.c_str(), &dir);
|
||||||
if (fh == -1L)
|
if (fh == -1L)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user