riched20: Write-strings warnings fix.

The string members of the FINDTEXT and FINDTEXTEX structs are declared
constant in the SDK.
This commit is contained in:
Andrew Talbot 2006-07-21 21:05:00 +01:00 committed by Alexandre Julliard
parent 9e740600c3
commit 0c96a42a59
3 changed files with 8 additions and 8 deletions

View File

@ -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)
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},

View File

@ -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) {
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},

View File

@ -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;