Commit 286dc62e authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

services: Always initialise the out buffer in svcctl_QueryServiceStatusEx and…

services: Always initialise the out buffer in svcctl_QueryServiceStatusEx and svcctl_QueryServiceConfig2W.
parent 1c89dacf
......@@ -654,6 +654,8 @@ DWORD svcctl_QueryServiceConfig2W( SC_RPC_HANDLE hService, DWORD level,
struct sc_service_handle *service;
DWORD err;
memset(buffer, 0, size);
if ((err = validate_service_handle(hService, SERVICE_QUERY_STATUS, &service)) != 0)
return err;
......@@ -701,6 +703,8 @@ DWORD svcctl_QueryServiceStatusEx(
DWORD err;
LPSERVICE_STATUS_PROCESS pSvcStatusData;
memset(lpBuffer, 0, cbBufSize);
if ((err = validate_service_handle(hService, SERVICE_QUERY_STATUS, &service)) != 0)
return err;
......
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