From 52c6070ea5e47d254253dea6f977746d3588e619 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Fri, 28 Feb 2020 21:45:32 -0600 Subject: [PATCH] httpapi: Stub HttpSetUrlGroupProperty(HttpServerLoggingProperty). Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48530 Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- dlls/httpapi/httpapi_main.c | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/dlls/httpapi/httpapi_main.c b/dlls/httpapi/httpapi_main.c index 9904ed18dbf..6be4d11d35f 100644 --- a/dlls/httpapi/httpapi_main.c +++ b/dlls/httpapi/httpapi_main.c @@ -657,25 +657,29 @@ ULONG WINAPI HttpCloseUrlGroup(HTTP_URL_GROUP_ID id) ULONG WINAPI HttpSetUrlGroupProperty(HTTP_URL_GROUP_ID id, HTTP_SERVER_PROPERTY property, void *value, ULONG length) { struct url_group *group = get_url_group(id); - const HTTP_BINDING_INFO *info = value; TRACE("id %s, property %u, value %p, length %u.\n", wine_dbgstr_longlong(id), property, value, length); - if (property != HttpServerBindingProperty) + switch (property) { - FIXME("Unhandled property %u.\n", property); - return ERROR_CALL_NOT_IMPLEMENTED; + case HttpServerBindingProperty: + { + const HTTP_BINDING_INFO *info = value; + + TRACE("Binding to queue %p.\n", info->RequestQueueHandle); + group->queue = info->RequestQueueHandle; + if (group->url) + add_url(group->queue, group->url, group->context); + return ERROR_SUCCESS; + } + case HttpServerLoggingProperty: + WARN("Ignoring logging property.\n"); + return ERROR_SUCCESS; + default: + FIXME("Unhandled property %u.\n", property); + return ERROR_CALL_NOT_IMPLEMENTED; } - - TRACE("Binding to queue %p.\n", info->RequestQueueHandle); - - group->queue = info->RequestQueueHandle; - - if (group->url) - add_url(group->queue, group->url, group->context); - - return ERROR_SUCCESS; } /***********************************************************************