Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
3cfad1fb
Commit
3cfad1fb
authored
Nov 04, 2007
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Nov 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Fix detection of CFE_LINK on WinXP-SP2.
parent
ba2e3f57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
editor.c
dlls/riched20/tests/editor.c
+6
-6
No files found.
dlls/riched20/tests/editor.c
View file @
3cfad1fb
...
...
@@ -698,21 +698,21 @@ static void test_EM_SETOPTIONS(void)
DestroyWindow
(
hwndRichEdit
);
}
static
void
check_CFE_LINK_rcvd
(
HWND
hwnd
,
int
is_url
)
static
void
check_CFE_LINK_rcvd
(
HWND
hwnd
,
int
is_url
,
const
char
*
url
)
{
CHARFORMAT2W
text_format
;
int
link_present
=
0
;
text_format
.
cbSize
=
sizeof
(
text_format
);
SendMessage
(
hwnd
,
EM_SETSEL
,
0
,
0
);
SendMessage
(
hwnd
,
EM_SETSEL
,
0
,
1
);
SendMessage
(
hwnd
,
EM_GETCHARFORMAT
,
SCF_SELECTION
,
(
LPARAM
)
&
text_format
);
link_present
=
text_format
.
dwEffects
&
CFE_LINK
;
if
(
is_url
)
{
/* control text is url; should get CFE_LINK */
ok
(
0
!=
link_present
,
"URL Case: CFE_LINK not set
.
\n
"
);
ok
(
0
!=
link_present
,
"URL Case: CFE_LINK not set
for [%s].
\n
"
,
url
);
}
else
{
ok
(
0
==
link_present
,
"Non-URL Case: CFE_LINK set
.
\n
"
);
ok
(
0
==
link_present
,
"Non-URL Case: CFE_LINK set
for [%s].
\n
"
,
url
);
}
}
...
...
@@ -761,11 +761,11 @@ static void test_EM_AUTOURLDETECT(void)
SendMessage
(
hwndRichEdit
,
EM_AUTOURLDETECT
,
FALSE
,
0
);
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
urls
[
i
].
text
);
SendMessage
(
hwndRichEdit
,
WM_CHAR
,
0
,
0
);
check_CFE_LINK_rcvd
(
hwndRichEdit
,
0
);
check_CFE_LINK_rcvd
(
hwndRichEdit
,
0
,
urls
[
i
].
text
);
SendMessage
(
hwndRichEdit
,
EM_AUTOURLDETECT
,
TRUE
,
0
);
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
urls
[
i
].
text
);
SendMessage
(
hwndRichEdit
,
WM_CHAR
,
0
,
0
);
check_CFE_LINK_rcvd
(
hwndRichEdit
,
urls
[
i
].
is_url
);
check_CFE_LINK_rcvd
(
hwndRichEdit
,
urls
[
i
].
is_url
,
urls
[
i
].
text
);
}
DestroyWindow
(
hwndRichEdit
);
DestroyWindow
(
parent
);
...
...
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