mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
- check for a valid file descriptor
svn path=/trunk/; revision=34070
This commit is contained in:
parent
4b8a3ba4d6
commit
eb0b862540
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue