Commit d08852d8 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

riched20: Use wide-char string literals in a struct initialization.

parent 60b21679
...@@ -5433,23 +5433,25 @@ done: ...@@ -5433,23 +5433,25 @@ done:
static BOOL ME_IsCandidateAnURL(ME_TextEditor *editor, const ME_Cursor *start, int nChars) static BOOL ME_IsCandidateAnURL(ME_TextEditor *editor, const ME_Cursor *start, int nChars)
{ {
#define MAX_PREFIX_LEN 9 #define MAX_PREFIX_LEN 9
#define X(str) str, ARRAY_SIZE(str) - 1
struct prefix_s { struct prefix_s {
const WCHAR text[MAX_PREFIX_LEN]; const WCHAR text[MAX_PREFIX_LEN];
int length; int length;
}prefixes[] = { }prefixes[] = {
{{'p','r','o','s','p','e','r','o',':'}, 9}, {X(L"prospero:")},
{{'t','e','l','n','e','t',':'}, 7}, {X(L"telnet:")},
{{'g','o','p','h','e','r',':'}, 7}, {X(L"gopher:")},
{{'m','a','i','l','t','o',':'}, 7}, {X(L"mailto:")},
{{'h','t','t','p','s',':'}, 6}, {X(L"https:")},
{{'f','i','l','e',':'}, 5}, {X(L"file:")},
{{'n','e','w','s',':'}, 5}, {X(L"news:")},
{{'w','a','i','s',':'}, 5}, {X(L"wais:")},
{{'n','n','t','p',':'}, 5}, {X(L"nntp:")},
{{'h','t','t','p',':'}, 5}, {X(L"http:")},
{{'w','w','w','.'}, 4}, {X(L"www.")},
{{'f','t','p',':'}, 4}, {X(L"ftp:")},
}; };
#undef X
WCHAR bufferW[MAX_PREFIX_LEN + 1]; WCHAR bufferW[MAX_PREFIX_LEN + 1];
unsigned int i; unsigned int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment