From c17cfbdc51b88643ef1eedd0a562da57e4c18266 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Thu, 26 Mar 2009 21:23:55 +0000 Subject: [PATCH] advapi32: Constify some variables. --- dlls/advapi32/service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index 51a41e7f79..7fea937ca6 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -340,7 +340,7 @@ static DWORD service_handle_start(service_data *service, const WCHAR *data, DWOR /****************************************************************************** * service_handle_control */ -static DWORD service_handle_control(service_data *service, DWORD dwControl) +static DWORD service_handle_control(const service_data *service, DWORD dwControl) { DWORD ret = ERROR_INVALID_SERVICE_CONTROL; @@ -1264,7 +1264,7 @@ static DWORD move_string_to_buffer(BYTE **buf, LPWSTR *string_ptr) return cb; } -static DWORD size_string(LPWSTR string) +static DWORD size_string(LPCWSTR string) { return (string ? (strlenW(string) + 1)*sizeof(WCHAR) : sizeof(WCHAR)); }