mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
fix a nice bug in RGetServiceKeyNameA
svn path=/trunk/; revision=39436
This commit is contained in:
parent
8dd9673939
commit
e877ae3bff
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue