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
455eca6d
Commit
455eca6d
authored
Jul 04, 2014
by
Jactry Zeng
Committed by
Alexandre Julliard
Jul 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Return nonzero value instead of zero when EM_SETREADONLY succeeds.
parent
b4ce0760
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
editor.c
dlls/riched20/editor.c
+1
-1
editor.c
dlls/riched20/tests/editor.c
+20
-0
No files found.
dlls/riched20/editor.c
View file @
455eca6d
...
...
@@ -3479,7 +3479,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
editor
->
styleFlags
|=
ES_READONLY
;
else
editor
->
styleFlags
&=
~
ES_READONLY
;
return
0
;
return
1
;
}
case
EM_SETEVENTMASK
:
{
...
...
dlls/riched20/tests/editor.c
View file @
455eca6d
...
...
@@ -7576,6 +7576,25 @@ static void test_reset_default_para_fmt( void )
DestroyWindow
(
richedit
);
}
static
void
test_EM_SETREADONLY
(
void
)
{
HWND
richedit
=
new_richeditW
(
NULL
);
DWORD
dwStyle
;
LRESULT
res
;
res
=
SendMessageA
(
richedit
,
EM_SETREADONLY
,
TRUE
,
0
);
ok
(
res
==
1
,
"EM_SETREADONLY
\n
"
);
dwStyle
=
GetWindowLongA
(
richedit
,
GWL_STYLE
);
ok
(
dwStyle
&
ES_READONLY
,
"got wrong value: 0x%x
\n
"
,
dwStyle
&
ES_READONLY
);
res
=
SendMessageA
(
richedit
,
EM_SETREADONLY
,
FALSE
,
0
);
ok
(
res
==
1
,
"EM_SETREADONLY
\n
"
);
dwStyle
=
GetWindowLongA
(
richedit
,
GWL_STYLE
);
ok
(
!
(
dwStyle
&
ES_READONLY
),
"got wrong value: 0x%x
\n
"
,
dwStyle
&
ES_READONLY
);
DestroyWindow
(
richedit
);
}
START_TEST
(
editor
)
{
BOOL
ret
;
...
...
@@ -7639,6 +7658,7 @@ START_TEST( editor )
test_enter
();
test_WM_CREATE
();
test_reset_default_para_fmt
();
test_EM_SETREADONLY
();
/* Set the environment variable WINETEST_RICHED20 to keep windows
* responsive and open for 30 seconds. This is useful for debugging.
...
...
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