Merge pull request from boskee/iolib-win10-access-violation-x64

Fixed Access Violation on Windows 10 (x64)
This commit is contained in:
Tim Felgentreff 2020-08-18 10:18:56 +02:00 committed by GitHub
commit 717b3cb0f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -715,8 +715,8 @@ int ReadDataDirectory(const char *dirname, std::vector<FileList> &fl)
#else
strcat_s(buffer, sizeof(buffer), "*.*");
struct _finddata_t fileinfo;
long hFile = _findfirst(buffer, &fileinfo);
if (hFile != -1L) {
intptr_t hFile = _findfirst(buffer, &fileinfo);
if (hFile != -1) {
do {
filename = fileinfo.name;
#endif