mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-08-19 13:02:02 +02:00
Fix FindClose->closedir
This commit is contained in:
@@ -132,7 +132,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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user