Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cxong/tinydir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Chen <jianhua.chen@cocos2d-x.org>2017-03-29 15:41:57 +0300
committerCong <congusbongus@gmail.com>2017-03-29 15:41:57 +0300
commitd5a460c903b9e7c55ffbd0d31fb3a9dfffdb6aa1 (patch)
treec15f7df6c348b6a53a4d185399befab1793f28fc
parent0862ba928c0ee2146104ffcba9c8f0267d108d7f (diff)
Fixes FindFirstFile is missing on win10 (#50, fixes #49)
-rw-r--r--tinydir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinydir.h b/tinydir.h
index 2d4418b..54d5f5a 100644
--- a/tinydir.h
+++ b/tinydir.h
@@ -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;