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

Hugh McMaster hugh.mcmaster at outlook.com
Thu Jun 18 20:26:49 CDT 2015


This is for consistency with the other instances.

---
 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 b789033..cc46ebc 100644
--- a/programs/regsvr32/regsvr32.c
+++ b/programs/regsvr32/regsvr32.c
@@ -166,7 +166,7 @@ static int RegisterDll(const WCHAR* strDll)
     return 0;
 }
 
-static int UnregisterDll(WCHAR* strDll)
+static int UnregisterDll(const WCHAR* strDll)
 {
     HRESULT hr;
     DLLUNREGISTER pfUnregister;
@@ -189,7 +189,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