From ce64e0d055a35ddb26c5962878ad29e7b37d7640 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Thu, 21 Aug 2008 17:17:52 +0200 Subject: [PATCH] advapi32: Prevent a crash when passing an allowed NULL parameter. --- dlls/advapi32/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index 45666ab9b31..d5a2c31fe80 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -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; } -- 2.11.4.GIT