Francois Gouget : windowscodecs: Avoid hardcoding the Unicode string literal lengths.
Alexandre Julliard
julliard at winehq.org
Fri Dec 16 11:22:54 CST 2011
Module: wine
Branch: master
Commit: 268d364e1f0b1b0c4ecd3d5df7f46b7096875c2a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=268d364e1f0b1b0c4ecd3d5df7f46b7096875c2a
Author: Francois Gouget <fgouget at free.fr>
Date: Fri Dec 16 13:06:31 2011 +0100
windowscodecs: Avoid hardcoding the Unicode string literal lengths.
---
dlls/windowscodecs/regsvr.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/windowscodecs/regsvr.c b/dlls/windowscodecs/regsvr.c
index bc12e40..9b7baea 100644
--- a/dlls/windowscodecs/regsvr.c
+++ b/dlls/windowscodecs/regsvr.c
@@ -99,19 +99,19 @@ static HRESULT unregister_converters(struct regsvr_converter const *list);
/***********************************************************************
* static string constants
*/
-static WCHAR const clsid_keyname[6] = {
+static WCHAR const clsid_keyname[] = {
'C', 'L', 'S', 'I', 'D', 0 };
-static WCHAR const curver_keyname[7] = {
+static WCHAR const curver_keyname[] = {
'C', 'u', 'r', 'V', 'e', 'r', 0 };
-static WCHAR const ips_keyname[13] = {
+static WCHAR const ips_keyname[] = {
'I', 'n', 'P', 'r', 'o', 'c', 'S', 'e', 'r', 'v', 'e', 'r',
0 };
-static WCHAR const ips32_keyname[15] = {
+static WCHAR const ips32_keyname[] = {
'I', 'n', 'P', 'r', 'o', 'c', 'S', 'e', 'r', 'v', 'e', 'r',
'3', '2', 0 };
-static WCHAR const progid_keyname[7] = {
+static WCHAR const progid_keyname[] = {
'P', 'r', 'o', 'g', 'I', 'D', 0 };
-static WCHAR const viprogid_keyname[25] = {
+static WCHAR const viprogid_keyname[] = {
'V', 'e', 'r', 's', 'i', 'o', 'n', 'I', 'n', 'd', 'e', 'p',
'e', 'n', 'd', 'e', 'n', 't', 'P', 'r', 'o', 'g', 'I', 'D',
0 };
More information about the wine-cvs
mailing list