Check for correct access right when deleting services

Patch by bugboy <martinmnet at hotmail dot com>
See issue #3474 for more details.

svn path=/trunk/; revision=34410
This commit is contained in:
Ged Murphy 2008-07-10 11:45:06 +00:00
parent 1598630aef
commit 8ca3cee755

View file

@ -395,7 +395,7 @@ DWORD RDeleteService(
return ERROR_INVALID_HANDLE;
if (!RtlAreAllAccessesGranted(hSvc->Handle.DesiredAccess,
STANDARD_RIGHTS_REQUIRED))
DELETE))
return ERROR_ACCESS_DENIED;
lpService = hSvc->ServiceEntry;