mirror of
https://github.com/reactos/reactos.git
synced 2025-05-18 16:51:18 +00:00
[SERVICES] RChangeServiceConfigW: Check valid usage of lpdwTagId when lpLoadOrderGroup is not specified.
This commit is contained in:
parent
dcd4a3d000
commit
d6e577ced9
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue