mirror of
https://github.com/reactos/reactos.git
synced 2025-06-26 10:59:42 +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);
|
HANDLE hand = fdtoh(fd);
|
||||||
FILETIME at, wt;
|
FILETIME at, wt;
|
||||||
|
|
||||||
|
if (hand == INVALID_HANDLE_VALUE)
|
||||||
|
return -1;
|
||||||
|
|
||||||
if (!t)
|
if (!t)
|
||||||
{
|
{
|
||||||
time_t currTime;
|
time_t currTime;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue