INTIME: fix check returns Find{First,Next,Close} for version <6

This commit is contained in:
Elms
2021-04-08 10:23:26 -07:00
parent 379e1fb630
commit 18eca4deff

View File

@ -786,9 +786,9 @@ WOLFSSL_API int wolfCrypt_Cleanup(void);
& FILE_ATTR_NORMAL) & FILE_ATTR_NORMAL)
#else #else
struct _find64 FindFileData; struct _find64 FindFileData;
#define IntimeFindFirst(name, data) _findfirst64(name, data) #define IntimeFindFirst(name, data) (0 == _findfirst64(name, data))
#define IntimeFindNext(data) _findnext64(data) #define IntimeFindNext(data) (0 == _findnext64(data))
#define IntimeFindClose(data) _findclose64(data) #define IntimeFindClose(data) (0 == _findclose64(data))
#define IntimeFilename(ctx) ctx->FindFileData.f_filename #define IntimeFilename(ctx) ctx->FindFileData.f_filename
#define IntimeNormalFile(ctx) (0 == wc_FileExists(IntimeFilename(ctx))) #define IntimeNormalFile(ctx) (0 == wc_FileExists(IntimeFilename(ctx)))
#endif #endif