mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
- check for a valid file descriptor
svn path=/trunk/; revision=34070
This commit is contained in:
@@ -1256,6 +1256,9 @@ int CDECL _futime(int fd, struct _utimbuf *t)
|
||||
HANDLE hand = fdtoh(fd);
|
||||
FILETIME at, wt;
|
||||
|
||||
if (hand == INVALID_HANDLE_VALUE)
|
||||
return -1;
|
||||
|
||||
if (!t)
|
||||
{
|
||||
time_t currTime;
|
||||
|
||||
Reference in New Issue
Block a user