mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:15:41 +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))
|
(dwErrorControl != SERVICE_ERROR_CRITICAL))
|
||||||
return ERROR_INVALID_PARAMETER;
|
return ERROR_INVALID_PARAMETER;
|
||||||
|
|
||||||
|
if (lpdwTagId && (!lpLoadOrderGroup || !*lpLoadOrderGroup))
|
||||||
|
{
|
||||||
|
return ERROR_INVALID_PARAMETER;
|
||||||
|
}
|
||||||
|
|
||||||
lpService = hSvc->ServiceEntry;
|
lpService = hSvc->ServiceEntry;
|
||||||
if (lpService == NULL)
|
if (lpService == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue