Andrew Talbot : advapi32: Constify some variables.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 12 08:28:28 CDT 2007
Module: wine
Branch: master
Commit: 39fb7839a70d1b06073e429f457e6271c2bc7ce3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=39fb7839a70d1b06073e429f457e6271c2bc7ce3
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Sat Mar 10 12:18:40 2007 +0000
advapi32: Constify some variables.
---
dlls/advapi32/service.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c
index 1cd643f..e962455 100644
--- a/dlls/advapi32/service.c
+++ b/dlls/advapi32/service.c
@@ -276,7 +276,7 @@ static inline void service_set_multi_string( struct reg_value *val,
}
static inline LONG service_write_values( HKEY hKey,
- struct reg_value *val, int n )
+ const struct reg_value *val, int n )
{
LONG r = ERROR_SUCCESS;
int i;
@@ -294,7 +294,7 @@ static inline LONG service_write_values( HKEY hKey,
/******************************************************************************
* Service IPC functions
*/
-static LPWSTR service_get_pipe_name(LPWSTR service)
+static LPWSTR service_get_pipe_name(LPCWSTR service)
{
static const WCHAR prefix[] = { '\\','\\','.','\\','p','i','p','e','\\',
'_','_','w','i','n','e','s','e','r','v','i','c','e','_',0};
@@ -308,7 +308,7 @@ static LPWSTR service_get_pipe_name(LPWSTR service)
return name;
}
-static HANDLE service_open_pipe(LPWSTR service)
+static HANDLE service_open_pipe(LPCWSTR service)
{
LPWSTR szPipe = service_get_pipe_name( service );
HANDLE handle = INVALID_HANDLE_VALUE;
@@ -329,7 +329,7 @@ static HANDLE service_open_pipe(LPWSTR service)
/******************************************************************************
* service_get_event_handle
*/
-static HANDLE service_get_event_handle(LPWSTR service)
+static HANDLE service_get_event_handle(LPCWSTR service)
{
static const WCHAR prefix[] = {
'_','_','w','i','n','e','s','e','r','v','i','c','e','_',0};
More information about the wine-cvs
mailing list