diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index 6da7331d9d7..fac6f39d3bd 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -5680,7 +5680,16 @@ DWORD WINAPI SetSecurityInfo(HANDLE handle, SE_OBJECT_TYPE ObjectType, if (SecurityInfo & SACL_SECURITY_INFORMATION) SetSecurityDescriptorSacl(&sd, TRUE, pSacl, FALSE); - status = NtSetSecurityObject(handle, SecurityInfo, &sd); + switch (ObjectType) + { + case SE_SERVICE: + FIXME("stub: Service objects are not supported at this time.\n"); + status = STATUS_SUCCESS; /* Implement SetServiceObjectSecurity */ + break; + default: + status = NtSetSecurityObject(handle, SecurityInfo, &sd); + break; + } return RtlNtStatusToDosError(status); } diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index fc98880a024..9a952e178d7 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -2196,6 +2196,9 @@ BOOL WINAPI QueryServiceObjectSecurity(SC_HANDLE hService, /****************************************************************************** * SetServiceObjectSecurity [ADVAPI32.@] + * + * NOTES + * - SetSecurityInfo should be updated to call this function once it's implemented. */ BOOL WINAPI SetServiceObjectSecurity(SC_HANDLE hService, SECURITY_INFORMATION dwSecurityInformation,