Commit cc5aceb4 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

advapi32: Fix the service function being called when extended is

either set or not set (reported by Andrey Turkin).
parent 85ed9a59
...@@ -610,14 +610,14 @@ static BOOL service_handle_control(HANDLE pipe, service_data *service, ...@@ -610,14 +610,14 @@ static BOOL service_handle_control(HANDLE pipe, service_data *service,
if (service_accepts_control(service, dwControl)) if (service_accepts_control(service, dwControl))
{ {
if (service->extended && service->handler.handler) if (service->extended && service->handler.handler_ex)
{ {
service->handler.handler(dwControl); service->handler.handler_ex(dwControl, 0, NULL, service->context);
ret = ERROR_SUCCESS; ret = ERROR_SUCCESS;
} }
else if (service->handler.handler_ex) else if (service->handler.handler)
{ {
service->handler.handler_ex(dwControl, 0, NULL, service->context); service->handler.handler(dwControl);
ret = ERROR_SUCCESS; ret = ERROR_SUCCESS;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment