[PATCH v2 5/5] httpapi: Stub HttpSetUrlGroupProperty(HttpServerLoggingProperty).

Zebediah Figura z.figura12 at gmail.com
Fri Feb 28 21:45:32 CST 2020


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48530
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 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 9904ed18db..6be4d11d35 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;
-    }
-
-    TRACE("Binding to queue %p.\n", info->RequestQueueHandle);
-
-    group->queue = info->RequestQueueHandle;
-
-    if (group->url)
-        add_url(group->queue, group->url, group->context);
+        case HttpServerBindingProperty:
+        {
+            const HTTP_BINDING_INFO *info = value;
 
-    return ERROR_SUCCESS;
+            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;
+    }
 }
 
 /***********************************************************************
-- 
2.25.0




More information about the wine-devel mailing list