advapi32: Prevent a crash when passing an allowed NULL parameter.

This commit is contained in:
Paul Vriens 2008-08-21 17:17:52 +02:00 committed by Alexandre Julliard
parent 0539b463e6
commit ce64e0d055
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}