mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
[SERVICES] RChangeServiceConfigW: Check valid usage of lpdwTagId when lpLoadOrderGroup is not specified.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user