Author: janderwald
Date: Tue Jun 24 07:42:22 2008
New Revision: 34070
URL:
http://svn.reactos.org/svn/reactos?rev=34070&view=rev
Log:
- check for a valid file descriptor
Modified:
trunk/reactos/lib/sdk/crt/stdio/file.c
Modified: trunk/reactos/lib/sdk/crt/stdio/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/stdio/file.c?r…
==============================================================================
--- trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] Tue Jun 24 07:42:22 2008
@@ -1255,6 +1255,9 @@
{
HANDLE hand = fdtoh(fd);
FILETIME at, wt;
+
+ if (hand == INVALID_HANDLE_VALUE)
+ return -1;
if (!t)
{