Author: ekohl
Date: Sun Aug 24 13:08:17 2008
New Revision: 35604
URL:
http://svn.reactos.org/svn/reactos?rev=35604&view=rev
Log:
Hack the declaration of RQueryServiceConfigA. This hack has already been applied to
RQueryServiceConfigW.
Based on patches from Bug #3669 by bugboy <martinmnet(a)hotmail.com>om>.
Modified:
trunk/reactos/base/system/services/rpcserver.c
trunk/reactos/dll/win32/advapi32/service/scm.c
trunk/reactos/include/reactos/idl/svcctl.idl
Modified: trunk/reactos/base/system/services/rpcserver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/rpcse…
==============================================================================
--- trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] Sun Aug 24 13:08:17 2008
@@ -2475,7 +2475,7 @@
DWORD RQueryServiceConfigA(
handle_t BindingHandle,
SC_RPC_HANDLE hService,
- LPQUERY_SERVICE_CONFIGA lpServiceConfig,
+ LPBYTE lpBuf, //LPQUERY_SERVICE_CONFIGA lpServiceConfig,
DWORD cbBufSize,
LPBOUNDED_DWORD_8K pcbBytesNeeded)
{
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] Sun Aug 24 13:08:17 2008
@@ -1461,7 +1461,7 @@
/* Call to services.exe using RPC */
dwError = RQueryServiceConfigA(BindingHandle,
(SC_RPC_HANDLE)hService,
- lpServiceConfig,
+ (LPBYTE)lpServiceConfig,
cbBufSize,
pcbBytesNeeded);
if (dwError != ERROR_SUCCESS)
Modified: trunk/reactos/include/reactos/idl/svcctl.idl
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/idl/svcctl…
==============================================================================
--- trunk/reactos/include/reactos/idl/svcctl.idl [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/idl/svcctl.idl [iso-8859-1] Sun Aug 24 13:08:17 2008
@@ -578,7 +578,8 @@
DWORD RQueryServiceConfigA(
[in] handle_t BindingHandle,
[in] SC_RPC_HANDLE hService,
- [out] LPQUERY_SERVICE_CONFIGA lpServiceConfig,
+ [out, unique, size_is(cbBufSize)] LPBYTE lpServiceConfig,
+ /* FIXME: should be [out] LPQUERY_SERVICE_CONFIGA lpServiceConfig, */
[in, range(0, 1024*8)] DWORD cbBufSize,
[out] LPBOUNDED_DWORD_8K pcbBytesNeeded);