Alex Henrie : atl: Turn variable 'mshtml_prefixW' into a static constant.

Alexandre Julliard julliard at winehq.org
Mon Nov 12 16:26:55 CST 2018


Module: wine
Branch: master
Commit: b6e87cd48cd4441d387d292e8f91be8e34a19440
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b6e87cd48cd4441d387d292e8f91be8e34a19440

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun Nov 11 20:51:15 2018 -0700

atl: Turn variable 'mshtml_prefixW' into a static constant.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 ff627cc..8121278 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])
     {




More information about the wine-cvs mailing list