fix a nice bug in RGetServiceKeyNameA

svn path=/trunk/; revision=39436
This commit is contained in:
Christoph von Wittich 2009-02-06 11:18:49 +00:00
parent 8dd9673939
commit e877ae3bff

View file

@ -3950,8 +3950,8 @@ DWORD RGetServiceKeyNameA(
0,
lpService->lpServiceName,
wcslen(lpService->lpServiceName),
lpServiceName + 1,
dwLength,
lpServiceName,
dwLength + 1,
NULL,
NULL);
return ERROR_SUCCESS;
@ -4284,11 +4284,13 @@ DWORD RQueryServiceConfig2A(
else
{
lpServiceDescription->lpDescription = NULL;
goto done;
}
}
else
{
dwError = ERROR_INSUFFICIENT_BUFFER;
goto done;
}
}
else if (dwInfoLevel & SERVICE_CONFIG_FAILURE_ACTIONS)