diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index 7fea937ca62..cce2af41ed1 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -933,8 +933,8 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName, { err = svcctl_CreateServiceW(hSCManager, lpServiceName, lpDisplayName, dwDesiredAccess, dwServiceType, dwStartType, dwErrorControl, - lpBinaryPathName, lpLoadOrderGroup, lpdwTagId, (LPBYTE)lpDependencies, - multisz_cb(lpDependencies), lpServiceStartName, (LPBYTE)lpPassword, passwdlen, + lpBinaryPathName, lpLoadOrderGroup, lpdwTagId, (const BYTE*)lpDependencies, + multisz_cb(lpDependencies), lpServiceStartName, (const BYTE*)lpPassword, passwdlen, (SC_RPC_HANDLE *)&handle); } __EXCEPT(rpc_filter)