strmbase: Avoid hardcoding the Unicode string literal lengths.

Francois Gouget fgouget at free.fr
Fri Dec 16 06:06:11 CST 2011


---
 dlls/strmbase/dllfunc.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/dlls/strmbase/dllfunc.c b/dlls/strmbase/dllfunc.c
index adb5655..41d8b6b 100644
--- a/dlls/strmbase/dllfunc.c
+++ b/dlls/strmbase/dllfunc.c
@@ -53,14 +53,10 @@ static LONG server_locks = 0;
  */
 #define MAX_KEY_LEN  260
 
-static WCHAR const clsid_keyname[6] =
-{'C','L','S','I','D',0 };
-static WCHAR const ips32_keyname[15] =
-{'I','n','P','r','o','c','S','e','r','v','e','r','3','2',0};
-static WCHAR const tmodel_keyname[15] =
-{'T','h','r','e','a','d','i','n','g','M','o','d','e','l',0};
-static WCHAR const tmodel_both[] =
-{'B','o','t','h',0};
+static WCHAR const clsid_keyname[] = {'C','L','S','I','D',0 };
+static WCHAR const ips32_keyname[] = {'I','n','P','r','o','c','S','e','r','v','e','r','3','2',0};
+static WCHAR const tmodel_keyname[] = {'T','h','r','e','a','d','i','n','g','M','o','d','e','l',0};
+static WCHAR const tmodel_both[] = {'B','o','t','h',0};
 
 /*
  * SetupRegisterClass()
-- 
1.7.7.3




More information about the wine-patches mailing list