Commit 0c96a42a authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

riched20: Write-strings warnings fix.

The string members of the FINDTEXT and FINDTEXTEX structs are declared constant in the SDK.
parent 9e740600
...@@ -769,7 +769,7 @@ ME_FindItemAtOffset(ME_TextEditor *editor, ME_DIType nItemType, int nOffset, int ...@@ -769,7 +769,7 @@ ME_FindItemAtOffset(ME_TextEditor *editor, ME_DIType nItemType, int nOffset, int
static int static int
ME_FindText(ME_TextEditor *editor, DWORD flags, CHARRANGE *chrg, WCHAR *text, CHARRANGE *chrgText) ME_FindText(ME_TextEditor *editor, DWORD flags, CHARRANGE *chrg, const WCHAR *text, CHARRANGE *chrgText)
{ {
const int nLen = lstrlenW(text); const int nLen = lstrlenW(text);
const int nTextLen = ME_GetTextLength(editor); const int nTextLen = ME_GetTextLength(editor);
...@@ -2675,7 +2675,7 @@ LRESULT WINAPI REExtendedRegisterClass(void) ...@@ -2675,7 +2675,7 @@ LRESULT WINAPI REExtendedRegisterClass(void)
int ME_AutoURLDetect(ME_TextEditor *editor, WCHAR curChar) int ME_AutoURLDetect(ME_TextEditor *editor, WCHAR curChar)
{ {
struct prefix_s { struct prefix_s {
char *text; const char *text;
int length; int length;
} prefixes[12] = { } prefixes[12] = {
{"http:", 5}, {"http:", 5},
......
...@@ -44,7 +44,7 @@ static const char haystack[] = "WINEWine wineWine wine WineWine"; ...@@ -44,7 +44,7 @@ static const char haystack[] = "WINEWine wineWine wine WineWine";
struct find_s { struct find_s {
int start; int start;
int end; int end;
char *needle; const char *needle;
int flags; int flags;
int expected_loc; int expected_loc;
int _todo_wine; int _todo_wine;
...@@ -565,7 +565,7 @@ static HWND new_static_wnd(HWND parent) { ...@@ -565,7 +565,7 @@ static HWND new_static_wnd(HWND parent) {
static void test_EM_AUTOURLDETECT(void) static void test_EM_AUTOURLDETECT(void)
{ {
struct urls_s { struct urls_s {
char *text; const char *text;
int is_url; int is_url;
} urls[12] = { } urls[12] = {
{"winehq.org", 0}, {"winehq.org", 0},
......
...@@ -434,25 +434,25 @@ typedef struct _ensaveclipboard { ...@@ -434,25 +434,25 @@ typedef struct _ensaveclipboard {
typedef struct _findtextA { typedef struct _findtextA {
CHARRANGE chrg; CHARRANGE chrg;
LPSTR lpstrText; LPCSTR lpstrText;
} FINDTEXTA; } FINDTEXTA;
typedef struct _findtextW { typedef struct _findtextW {
CHARRANGE chrg; CHARRANGE chrg;
LPWSTR lpstrText; LPCWSTR lpstrText;
} FINDTEXTW; } FINDTEXTW;
DECL_WINELIB_TYPE_AW(FINDTEXT) DECL_WINELIB_TYPE_AW(FINDTEXT)
typedef struct _findtextexA { typedef struct _findtextexA {
CHARRANGE chrg; CHARRANGE chrg;
LPSTR lpstrText; LPCSTR lpstrText;
CHARRANGE chrgText; CHARRANGE chrgText;
} FINDTEXTEXA; } FINDTEXTEXA;
typedef struct _findtextexW { typedef struct _findtextexW {
CHARRANGE chrg; CHARRANGE chrg;
LPWSTR lpstrText; LPCWSTR lpstrText;
CHARRANGE chrgText; CHARRANGE chrgText;
} FINDTEXTEXW; } FINDTEXTEXW;
......
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