Francois Gouget : strmbase: Avoid hardcoding the Unicode string literal lengths.

Alexandre Julliard julliard at winehq.org
Fri Dec 16 11:22:55 CST 2011


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Dec 16 13:06:11 2011 +0100

strmbase: Avoid hardcoding the Unicode string literal lengths.

---

 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()




More information about the wine-cvs mailing list