mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Hack the declaration of RQueryServiceConfigA. This hack has already been applied to RQueryServiceConfigW.
Based on patches from Bug #3669 by bugboy <[email protected]>. svn path=/trunk/; revision=35604
This commit is contained in:
@@ -2475,7 +2475,7 @@ DWORD ROpenServiceA(
|
||||
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)
|
||||
{
|
||||
|
||||
@@ -1461,7 +1461,7 @@ QueryServiceConfigA(SC_HANDLE hService,
|
||||
/* Call to services.exe using RPC */
|
||||
dwError = RQueryServiceConfigA(BindingHandle,
|
||||
(SC_RPC_HANDLE)hService,
|
||||
lpServiceConfig,
|
||||
(LPBYTE)lpServiceConfig,
|
||||
cbBufSize,
|
||||
pcbBytesNeeded);
|
||||
if (dwError != ERROR_SUCCESS)
|
||||
|
||||
@@ -578,7 +578,8 @@ interface svcctl
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user