svn path=/trunk/mono/; revision=32370
-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:
*/
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);