Fetch a handle type in FILE_GetUnixHandle.

diff --git a/server/pipe.c b/server/pipe.c
index 8ade625..d1b2d42 100644
--- a/server/pipe.c
+++ b/server/pipe.c
@@ -126,17 +126,20 @@
 
 static int pipe_get_info( struct object *obj, struct get_file_info_request *req )
 {
-    req->type        = FILE_TYPE_PIPE;
-    req->attr        = 0;
-    req->access_time = 0;
-    req->write_time  = 0;
-    req->size_high   = 0;
-    req->size_low    = 0;
-    req->links       = 0;
-    req->index_high  = 0;
-    req->index_low   = 0;
-    req->serial      = 0;
-    return 1;
+    if (req)
+    {
+        req->type        = FILE_TYPE_PIPE;
+        req->attr        = 0;
+        req->access_time = 0;
+        req->write_time  = 0;
+        req->size_high   = 0;
+        req->size_low    = 0;
+        req->links       = 0;
+        req->index_high  = 0;
+        req->index_low   = 0;
+        req->serial      = 0;
+    }
+    return FD_TYPE_DEFAULT;
 }
 
 static void pipe_destroy( struct object *obj )