fix(type): on 64bit Windows, _findfirst return a value of type "intptr_t" rather than "long" which leads to crash

v1.6alpha
Micooz 9 years ago
parent e24bac5bb2
commit 3c05d95a8d

@ -119,7 +119,7 @@ std::vector<std::string> Utils::getFiles(const std::string &folder,
subfolders.pop_back();
struct _finddata_t file_info;
long file_handler = _findfirst(current_folder.c_str(), &file_info);
auto file_handler = _findfirst(current_folder.c_str(), &file_info);
while (file_handler != -1) {
if (all &&

Loading…
Cancel
Save