Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0c96a42a
Commit
0c96a42a
authored
Jul 21, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Write-strings warnings fix.
The string members of the FINDTEXT and FINDTEXTEX structs are declared constant in the SDK.
parent
9e740600
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
editor.c
dlls/riched20/editor.c
+2
-2
editor.c
dlls/riched20/tests/editor.c
+2
-2
richedit.h
include/richedit.h
+4
-4
No files found.
dlls/riched20/editor.c
View file @
0c96a42a
...
...
@@ -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
;
c
onst
c
har
*
text
;
int
length
;
}
prefixes
[
12
]
=
{
{
"http:"
,
5
},
...
...
dlls/riched20/tests/editor.c
View file @
0c96a42a
...
...
@@ -44,7 +44,7 @@ static const char haystack[] = "WINEWine wineWine wine WineWine";
struct
find_s
{
int
start
;
int
end
;
char
*
needle
;
c
onst
c
har
*
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
;
c
onst
c
har
*
text
;
int
is_url
;
}
urls
[
12
]
=
{
{
"winehq.org"
,
0
},
...
...
include/richedit.h
View file @
0c96a42a
...
...
@@ -434,25 +434,25 @@ typedef struct _ensaveclipboard {
typedef
struct
_findtextA
{
CHARRANGE
chrg
;
LP
STR
lpstrText
;
LP
CSTR
lpstrText
;
}
FINDTEXTA
;
typedef
struct
_findtextW
{
CHARRANGE
chrg
;
LP
WSTR
lpstrText
;
LP
CWSTR
lpstrText
;
}
FINDTEXTW
;
DECL_WINELIB_TYPE_AW
(
FINDTEXT
)
typedef
struct
_findtextexA
{
CHARRANGE
chrg
;
LP
STR
lpstrText
;
LP
CSTR
lpstrText
;
CHARRANGE
chrgText
;
}
FINDTEXTEXA
;
typedef
struct
_findtextexW
{
CHARRANGE
chrg
;
LP
WSTR
lpstrText
;
LP
CWSTR
lpstrText
;
CHARRANGE
chrgText
;
}
FINDTEXTEXW
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment