Fix FindClose->closedir

This commit is contained in:
erorcun 2021-02-16 18:26:44 +03:00
parent ee287f6120
commit 1bfd7c0345

View File

@ -136,7 +136,12 @@ void GetLocalTime_CP(SYSTEMTIME* out);
typedef void* HANDLE; typedef void* HANDLE;
#define INVALID_HANDLE_VALUE NULL #define INVALID_HANDLE_VALUE NULL
#define FindClose(h) closedir((DIR*)h) #define FindClose(h) \
do { \
if (h != nil) \
closedir((DIR*)h); \
} while(0)
#define LOCALE_USER_DEFAULT 0 #define LOCALE_USER_DEFAULT 0
#define DATE_SHORTDATE 0 #define DATE_SHORTDATE 0