diff options
author | James Chen <jianhua.chen@cocos2d-x.org> | 2017-03-29 15:41:57 +0300 |
---|---|---|
committer | Cong <congusbongus@gmail.com> | 2017-03-29 15:41:57 +0300 |
commit | d5a460c903b9e7c55ffbd0d31fb3a9dfffdb6aa1 (patch) | |
tree | c15f7df6c348b6a53a4d185399befab1793f28fc | |
parent | 0862ba928c0ee2146104ffcba9c8f0267d108d7f (diff) |
Fixes FindFirstFile is missing on win10 (#50, fixes #49)
-rw-r--r-- | tinydir.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -294,7 +294,7 @@ int tinydir_open(tinydir_dir *dir, const _tinydir_char_t *path) #ifdef _MSC_VER _tinydir_strcpy(path_buf, dir->path); _tinydir_strcat(path_buf, TINYDIR_STRING("\\*")); - dir->_h = FindFirstFile(path_buf, &dir->_f); + dir->_h = FindFirstFileEx(path_buf, FindExInfoStandard, &dir->_f, FindExSearchNameMatch, NULL, 0); if (dir->_h == INVALID_HANDLE_VALUE) { errno = ENOENT; |