mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
close find handle in fs_file_time on windows
This commit is contained in:
parent
054e7528dd
commit
2f17fa9b39
|
@ -2389,6 +2389,7 @@ int fs_file_time(const char *name, time_t *created, time_t *modified)
|
|||
|
||||
*created = filetime_to_unixtime(&finddata.ftCreationTime);
|
||||
*modified = filetime_to_unixtime(&finddata.ftLastWriteTime);
|
||||
FindClose(handle);
|
||||
#elif defined(CONF_FAMILY_UNIX)
|
||||
struct stat sb;
|
||||
if(stat(name, &sb))
|
||||
|
|
Loading…
Reference in a new issue