Merge pull request #300 from boskee/iolib-win10-access-violation-x64
Fixed Access Violation on Windows 10 (x64)
This commit is contained in:
commit
717b3cb0f1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue