- check for a valid file descriptor

svn path=/trunk/; revision=34070
This commit is contained in:
Johannes Anderwald 2008-06-24 12:42:22 +00:00
parent 4b8a3ba4d6
commit eb0b862540

View file

@ -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;