Author: ekohl
Date: Tue Aug 16 19:16:16 2011
New Revision: 53270
URL:
http://svn.reactos.org/svn/reactos?rev=53270&view=rev
Log:
[ADVAPI32]
Fix QueryServiceStatusEx.
Modified:
trunk/reactos/dll/win32/advapi32/service/scm.c
Modified: trunk/reactos/dll/win32/advapi32/service/scm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/service…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/service/scm.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/service/scm.c [iso-8859-1] Tue Aug 16 19:16:16 2011
@@ -2526,6 +2526,13 @@
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 */