Commit ce64e0d0 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

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

parent 0539b463
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment