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