Revert incorrect change.
authorDick Porter <dick@acm.org>
Mon, 16 Aug 2004 14:46:54 +0000 (14:46 -0000)
committerDick Porter <dick@acm.org>
Mon, 16 Aug 2004 14:46:54 +0000 (14:46 -0000)
svn path=/trunk/mono/; revision=32370

mono/io-layer/ChangeLog
mono/io-layer/io.c

index 22dbbe5fc34386f0aa073fb6c179aa816a345b40..5dc428485eef10172ec1954b2311faa2f53fa91b 100644 (file)
@@ -1,8 +1,3 @@
-2004-08-14  Zoltan Varga  <vargaz@freemail.hu>
-
-       * io.c (GetFileType): Fix assertion if invalid handle is passed by the
-       caller.
-
 2004-08-11  Dick Porter  <dick@ximian.com>
 
        * sockets.c: 
index 1f693f97a6e6ba82046f6e1fb648a991ce2420e6..e369e0cd0bd619a7f309d3fa8f6d264fb2783a58 100644 (file)
@@ -2316,7 +2316,8 @@ guint32 SetFilePointer(gpointer fd_handle, gint32 movedistance,
  */
 WapiFileType GetFileType(gpointer fd_handle)
 {
-       WapiHandleType type=_wapi_handle_type (fd_handle);
+       gpointer handle = _wapi_handle_fd_offset_to_handle (fd_handle);
+       WapiHandleType type=_wapi_handle_type (handle);
        
        if(io_ops[type].getfiletype==NULL) {
                return(FILE_TYPE_UNKNOWN);