[SERVICES] RChangeServiceConfigW: Check valid usage of lpdwTagId when lpLoadOrderGroup is not specified.

This commit is contained in:
Hermès Bélusca-Maïto 2018-09-09 20:52:36 +02:00
parent dcd4a3d000
commit d6e577ced9
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -1989,6 +1989,11 @@ RChangeServiceConfigW(
(dwErrorControl != SERVICE_ERROR_CRITICAL))
return ERROR_INVALID_PARAMETER;
if (lpdwTagId && (!lpLoadOrderGroup || !*lpLoadOrderGroup))
{
return ERROR_INVALID_PARAMETER;
}
lpService = hSvc->ServiceEntry;
if (lpService == NULL)
{