Skip to content

Commit

Permalink
Fixes FindFirstFile is missing on win10 (#50, fixes #49)
Browse files Browse the repository at this point in the history
  • Loading branch information
James Chen authored and cxong committed Mar 29, 2017
1 parent 0862ba9 commit d5a460c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinydir.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d5a460c

Please sign in to comment.