- REnumServicesStatusExW: Correct check for returning ERROR_SERVICE_DOES_NOT_EXIST.

- fixes bug #3787

svn path=/trunk/; revision=36750
This commit is contained in:
Michael Martin 2008-10-14 15:59:09 +00:00
parent ed58e3df34
commit d9a416da9f

View file

@ -4995,7 +4995,7 @@ DWORD REnumServicesStatusExW(
*pcbBytesNeeded = dwRequiredSize;
/* If there was no services that matched */
if (!dwServiceCount)
if ((!dwServiceCount) && (dwError != ERROR_MORE_DATA))
{
dwError = ERROR_SERVICE_DOES_NOT_EXIST;
goto Done;