mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[ADVAPI32]
Fix QueryServiceStatusEx. svn path=/trunk/; revision=53270
This commit is contained in:
@@ -2526,6 +2526,13 @@ QueryServiceStatusEx(SC_HANDLE hService,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (cbBufSize < sizeof(SERVICE_STATUS_PROCESS))
|
||||
{
|
||||
*pcbBytesNeeded = sizeof(SERVICE_STATUS_PROCESS);
|
||||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
RpcTryExcept
|
||||
{
|
||||
/* Call to services.exe using RPC */
|
||||
|
||||
Reference in New Issue
Block a user