mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 14:51:00 +00:00
[ADVAPI32/SERVICES]
Fix changing a service description in (R)ChangeServiceConfig2W. Fixes bad service description in Vmware Tools. svn path=/trunk/; revision=56391
This commit is contained in:
parent
d0ca2665de
commit
fa3a49d6e8
2 changed files with 3 additions and 4 deletions
|
@ -4775,7 +4775,6 @@ DWORD RChangeServiceConfig2W(
|
|||
LPSERVICE_DESCRIPTIONW lpServiceDescription;
|
||||
|
||||
lpServiceDescription = (LPSERVICE_DESCRIPTIONW)Info.psd;
|
||||
lpServiceDescription->lpDescription = (LPWSTR)((ULONG_PTR)lpServiceDescription + sizeof(LPSERVICE_DESCRIPTIONW));
|
||||
|
||||
if (lpServiceDescription != NULL &&
|
||||
lpServiceDescription->lpDescription != NULL)
|
||||
|
|
|
@ -229,7 +229,7 @@ ChangeServiceConfig2W(SC_HANDLE hService,
|
|||
switch (dwInfoLevel)
|
||||
{
|
||||
case SERVICE_CONFIG_DESCRIPTION:
|
||||
Info.psd = (LPSERVICE_DESCRIPTIONW)&lpInfo;
|
||||
Info.psd = (LPSERVICE_DESCRIPTIONW)lpInfo;
|
||||
break;
|
||||
|
||||
case SERVICE_CONFIG_FAILURE_ACTIONS:
|
||||
|
|
Loading…
Reference in a new issue