[PATCH 2/2] advapi32/service.c: Fix compiler warnings with flag -Wcast-qual

Mikhail Maroukhine mikolg at yandex.ru
Fri Mar 26 10:50:51 CDT 2010


---
 dlls/advapi32/service.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c
index 7fea937..cce2af4 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)
-- 
1.6.3.3


------------BAIoOOFESzOepx456xBEJC--




More information about the wine-patches mailing list