mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +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:
|
||||
|
@ -543,7 +543,7 @@ CreateServiceA(SC_HANDLE hSCManager,
|
|||
LPCSTR lpStr;
|
||||
|
||||
TRACE("CreateServiceA() called\n");
|
||||
TRACE("%p %s %s\n", hSCManager,
|
||||
TRACE("%p %s %s\n", hSCManager,
|
||||
lpServiceName, lpDisplayName);
|
||||
|
||||
if (!hSCManager)
|
||||
|
@ -631,7 +631,7 @@ CreateServiceW(SC_HANDLE hSCManager,
|
|||
LPCWSTR lpStr;
|
||||
|
||||
TRACE("CreateServiceW() called\n");
|
||||
TRACE("%p %S %S\n", hSCManager,
|
||||
TRACE("%p %S %S\n", hSCManager,
|
||||
lpServiceName, lpDisplayName);
|
||||
|
||||
if (!hSCManager)
|
||||
|
|
Loading…
Reference in a new issue