[PATCH 3/4] programs/regsvr32: WCHAR *strDll and WCHAR *command_line should be const when passed for the final time

Hugh McMaster hugh.mcmaster at outlook.com
Tue Jun 23 06:27:24 CDT 2015


---
 programs/regsvr32/regsvr32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/regsvr32/regsvr32.c b/programs/regsvr32/regsvr32.c
index e9fc1d1..a891998 100644
--- a/programs/regsvr32/regsvr32.c
+++ b/programs/regsvr32/regsvr32.c
@@ -167,7 +167,7 @@ static int RegisterDll(const WCHAR* strDll)
     return 0;
 }
 
-static int UnregisterDll(WCHAR* strDll)
+static int UnregisterDll(const WCHAR* strDll)
 {
     HRESULT hr;
     DLLUNREGISTER pfUnregister;
@@ -190,7 +190,7 @@ static int UnregisterDll(WCHAR* strDll)
     return 0;
 }
 
-static int InstallDll(BOOL install, WCHAR *strDll, WCHAR *command_line)
+static int InstallDll(BOOL install, const WCHAR *strDll, const WCHAR *command_line)
 {
     HRESULT hr;
     DLLINSTALL pfInstall;
-- 
1.9.1




More information about the wine-patches mailing list