[PATCH] atl: Turn variable 'mshtml_prefixW' into a static constant

Alex Henrie alexhenrie24 at gmail.com
Sun Nov 11 21:51:15 CST 2018


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/atl/atl_ax.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/atl/atl_ax.c b/dlls/atl/atl_ax.c
index ff627ccddb..81212780e0 100644
--- a/dlls/atl/atl_ax.c
+++ b/dlls/atl/atl_ax.c
@@ -1001,9 +1001,9 @@ enum content
 
 static enum content get_content_type(LPCOLESTR name, CLSID *control_id)
 {
+    static const WCHAR mshtml_prefixW[] = {'m','s','h','t','m','l',':',0};
     WCHAR new_urlW[MAX_PATH];
     DWORD size = MAX_PATH;
-    WCHAR mshtml_prefixW[] = {'m','s','h','t','m','l',':','\0'};
 
     if (!name || !name[0])
     {
-- 
2.19.1




More information about the wine-devel mailing list