mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +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,
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue