advapi32: Prevent a crash when passing an allowed NULL parameter.
This commit is contained in:
parent
0539b463e6
commit
ce64e0d055
|
@ -1766,7 +1766,7 @@ EnumServicesStatusExA(SC_HANDLE hSCManager, SC_ENUM_TYPE InfoLevel, DWORD dwServ
|
|||
FIXME("%p level=%d type=%x state=%x %p %x %p %p %p %s\n", hSCManager, InfoLevel,
|
||||
dwServiceType, dwServiceState, lpServices, cbBufSize,
|
||||
pcbBytesNeeded, lpServicesReturned, lpResumeHandle, debugstr_a(pszGroupName));
|
||||
*lpServicesReturned = 0;
|
||||
if (lpServicesReturned) *lpServicesReturned = 0;
|
||||
SetLastError (ERROR_ACCESS_DENIED);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue