=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: localui/tests: Constify some character strings.

Alexandre Julliard julliard at winehq.org
Thu Dec 26 12:23:32 CST 2013


Module: wine
Branch: master
Commit: 4962b2f8bed8f62f9aa83ff2111790c6f4a3f9fb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4962b2f8bed8f62f9aa83ff2111790c6f4a3f9fb

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Tue Dec 24 09:25:39 2013 +0100

localui/tests: Constify some character strings.

---

 dlls/localui/tests/localui.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/localui/tests/localui.c b/dlls/localui/tests/localui.c
index e32a376..b0b51e3 100644
--- a/dlls/localui/tests/localui.c
+++ b/dlls/localui/tests/localui.c
@@ -44,12 +44,12 @@ static BOOL  (WINAPI *pAddPortUI)(PCWSTR, HWND, PCWSTR, PWSTR *);
 static BOOL  (WINAPI *pConfigurePortUI)(PCWSTR, HWND, PCWSTR);
 static BOOL  (WINAPI *pDeletePortUI)(PCWSTR, HWND, PCWSTR);
 
-static WCHAR does_not_existW[] = {'d','o','e','s','_','n','o','t','_','e','x','i','s','t',0};
-static WCHAR emptyW[] = {0};
-static CHAR  fmt_comA[] = {'C','O','M','%','u',':',0};
-static CHAR  fmt_lptA[] = {'L','P','T','%','u',':',0};
-static WCHAR localportW[] = {'L','o','c','a','l',' ','P','o','r','t',0};
-static WCHAR portname_fileW[] = {'F','I','L','E',':',0};
+static const WCHAR does_not_existW[] = {'d','o','e','s','_','n','o','t','_','e','x','i','s','t',0};
+static const WCHAR emptyW[] = {0};
+static const CHAR  fmt_comA[] = {'C','O','M','%','u',':',0};
+static const CHAR  fmt_lptA[] = {'L','P','T','%','u',':',0};
+static const WCHAR localportW[] = {'L','o','c','a','l',' ','P','o','r','t',0};
+static const WCHAR portname_fileW[] = {'F','I','L','E',':',0};
 
 static LPBYTE pi_buffer;
 static DWORD pi_numports;
@@ -64,7 +64,7 @@ static LPWSTR   com_absent;
 
 /* ########################### */
 
-static PORT_INFO_2W * find_portinfo2(LPWSTR pPort)
+static PORT_INFO_2W * find_portinfo2(LPCWSTR pPort)
 {
     PORT_INFO_2W * pi;
     DWORD   res;




More information about the wine-cvs mailing list