Author: gedmurphy
Date: Fri Sep 7 14:55:16 2007
New Revision: 28914
URL:
http://svn.reactos.org/svn/reactos?rev=28914&view=rev
Log:
adjust the pointers on the server side to match what the client is sending
Modified:
trunk/reactos/base/system/services/rpcserver.c
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 (original)
+++ trunk/reactos/base/system/services/rpcserver.c Fri Sep 7 14:55:16 2007
@@ -2294,15 +2294,13 @@
if (dwInfoLevel & SERVICE_CONFIG_DESCRIPTION)
{
- LPSERVICE_DESCRIPTIONW lpServiceDescription = (LPSERVICE_DESCRIPTIONW)lpInfo;
-
- if (dwInfoSize != sizeof(*lpServiceDescription))
- {
- dwError = ERROR_INVALID_PARAMETER;
- goto done;
- }
-
- if (lpServiceDescription != NULL &&
lpServiceDescription->lpDescription != NULL)
+ LPSERVICE_DESCRIPTIONW lpServiceDescription;
+
+ lpServiceDescription = (LPSERVICE_DESCRIPTIONW)lpInfo;
+ lpServiceDescription->lpDescription = (LPWSTR)(lpInfo +
sizeof(LPSERVICE_DESCRIPTIONW));
+
+ if (lpServiceDescription != NULL &&
+ lpServiceDescription->lpDescription != NULL)
{
RegSetValueExW(hServiceKey,
L"Description",
@@ -2327,7 +2325,7 @@
if (hServiceKey != NULL)
RegCloseKey(hServiceKey);
- DPRINT("ScmrChangeServiceConfigW() done (Error %lu)\n", dwError);
+ DPRINT("ScmrChangeServiceConfig2W() done (Error %lu)\n", dwError);
return dwError;
}