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