[PATCH v4 1/6] server: Retrieve the object name only when requested to.
Zebediah Figura
z.figura12 at gmail.com
Wed Jun 30 11:57:28 CDT 2021
A deleted key returns STATUS_KEY_DELETED when ObjectNameInformation is
requested, but succeeds when ObjectBasicInformation is requested.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
server/handle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/handle.c b/server/handle.c
index d86f0960ccf..d1288239903 100644
--- a/server/handle.c
+++ b/server/handle.c
@@ -693,7 +693,7 @@ DECL_HANDLER(get_object_info)
reply->access = get_handle_access( current->process, req->handle );
reply->ref_count = obj->refcount;
reply->handle_count = obj->handle_count;
- if ((name = obj->ops->get_full_name( obj, &reply->total )))
+ if (get_reply_max_size() && (name = obj->ops->get_full_name( obj, &reply->total )))
set_reply_data_ptr( name, min( reply->total, get_reply_max_size() ));
release_object( obj );
}
--
2.30.2
More information about the wine-devel
mailing list