mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:55:41 +00:00
[ADVAPI32]
Fix QueryServiceStatusEx. svn path=/trunk/; revision=53270
This commit is contained in:
parent
921b0cfa4d
commit
3305cfabfb
1 changed files with 7 additions and 0 deletions
|
@ -2526,6 +2526,13 @@ QueryServiceStatusEx(SC_HANDLE hService,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cbBufSize < sizeof(SERVICE_STATUS_PROCESS))
|
||||||
|
{
|
||||||
|
*pcbBytesNeeded = sizeof(SERVICE_STATUS_PROCESS);
|
||||||
|
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
RpcTryExcept
|
RpcTryExcept
|
||||||
{
|
{
|
||||||
/* Call to services.exe using RPC */
|
/* Call to services.exe using RPC */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue