[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

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)
{