From d771f4d17c3f2bb14cebc7d95b6993f92b48fedb Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 19 Oct 2010 17:03:40 +0200 Subject: [PATCH] server: Return an error in get_handle_unix_name for objects that don't have a file name. This way we fall back to retrieving the Win32 name. --- server/fd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/fd.c b/server/fd.c index f9a769e1357..bc1d853d2b6 100644 --- a/server/fd.c +++ b/server/fd.c @@ -2254,6 +2254,7 @@ DECL_HANDLER(get_handle_unix_name) if (name_len <= get_reply_max_size()) set_reply_data( fd->unix_name, name_len ); else set_error( STATUS_BUFFER_OVERFLOW ); } + else set_error( STATUS_OBJECT_TYPE_MISMATCH ); release_object( fd ); } } -- 2.11.4.GIT