Francois Gouget : quartz: 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: e8f42fb29efc5e3b4e871c3a18651f0e1dbd7253
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e8f42fb29efc5e3b4e871c3a18651f0e1dbd7253
Author: Francois Gouget <fgouget at free.fr>
Date: Fri Dec 16 13:07:04 2011 +0100
quartz: Avoid hardcoding the Unicode string literal lengths.
---
dlls/quartz/filesource.c | 4 ++--
dlls/quartz/regsvr.c | 32 ++++++++++++++++----------------
2 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c
index ab72f4f..6d3e554 100644
--- a/dlls/quartz/filesource.c
+++ b/dlls/quartz/filesource.c
@@ -60,9 +60,9 @@ static inline AsyncReader *impl_from_IFileSourceFilter( IFileSourceFilter *iface
return (AsyncReader *)((char*)iface - FIELD_OFFSET(AsyncReader, lpVtblFSF));
}
-static WCHAR const mediatype_name[11] = {
+static WCHAR const mediatype_name[] = {
'M', 'e', 'd', 'i', 'a', ' ', 'T', 'y', 'p', 'e', 0 };
-static WCHAR const subtype_name[8] = {
+static WCHAR const subtype_name[] = {
'S', 'u', 'b', 't', 'y', 'p', 'e', 0 };
static HRESULT process_extensions(HKEY hkeyExtensions, LPCOLESTR pszFileName, GUID * majorType, GUID * minorType)
diff --git a/dlls/quartz/regsvr.c b/dlls/quartz/regsvr.c
index d41e2f5..db5428e 100644
--- a/dlls/quartz/regsvr.c
+++ b/dlls/quartz/regsvr.c
@@ -124,43 +124,43 @@ static HRESULT unregister_filters(struct regsvr_filter const *list);
/***********************************************************************
* static string constants
*/
-static WCHAR const interface_keyname[10] = {
+static WCHAR const interface_keyname[] = {
'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0 };
-static WCHAR const base_ifa_keyname[14] = {
+static WCHAR const base_ifa_keyname[] = {
'B', 'a', 's', 'e', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c',
'e', 0 };
-static WCHAR const num_methods_keyname[11] = {
+static WCHAR const num_methods_keyname[] = {
'N', 'u', 'm', 'M', 'e', 't', 'h', 'o', 'd', 's', 0 };
-static WCHAR const ps_clsid_keyname[15] = {
+static WCHAR const ps_clsid_keyname[] = {
'P', 'r', 'o', 'x', 'y', 'S', 't', 'u', 'b', 'C', 'l', 's',
'i', 'd', 0 };
-static WCHAR const ps_clsid32_keyname[17] = {
+static WCHAR const ps_clsid32_keyname[] = {
'P', 'r', 'o', 'x', 'y', 'S', 't', 'u', 'b', 'C', 'l', 's',
'i', 'd', '3', '2', 0 };
-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 };
static char const tmodel_valuename[] = "ThreadingModel";
-static WCHAR const mediatype_name[11] = {
+static WCHAR const mediatype_name[] = {
'M', 'e', 'd', 'i', 'a', ' ', 'T', 'y', 'p', 'e', 0 };
-static WCHAR const subtype_valuename[8] = {
+static WCHAR const subtype_valuename[] = {
'S', 'u', 'b', 't', 'y', 'p', 'e', 0 };
-static WCHAR const sourcefilter_valuename[14] = {
+static WCHAR const sourcefilter_valuename[] = {
'S', 'o', 'u', 'r', 'c', 'e', ' ', 'F', 'i', 'l', 't', 'e', 'r', 0 };
-static WCHAR const extensions_keyname[11] = {
+static WCHAR const extensions_keyname[] = {
'E', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 's', 0 };
/***********************************************************************
@@ -209,7 +209,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
}
if (0 <= list->num_methods) {
- static WCHAR const fmt[3] = { '%', 'd', 0 };
+ static WCHAR const fmt[] = { '%', 'd', 0 };
HKEY key;
res = RegCreateKeyExW(iid_key, num_methods_keyname, 0, NULL, 0,
More information about the wine-cvs
mailing list