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
5c997de8
Commit
5c997de8
authored
Nov 07, 2022
by
Evan Tang
Committed by
Alexandre Julliard
Nov 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Don't emit EN_CHANGE events during window creation.
parent
0b069106
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
editor.c
dlls/riched20/tests/editor.c
+1
-1
txthost.c
dlls/riched20/txthost.c
+4
-0
No files found.
dlls/riched20/tests/editor.c
View file @
5c997de8
...
...
@@ -8949,7 +8949,7 @@ static void test_init_messages(void)
ok
(
parent
!=
0
,
"Failed to create parent window
\n
"
);
change_received
=
FALSE
;
edit
=
new_window
(
"RichEditWithEvents"
,
0
,
parent
);
todo_wine
ok
(
change_received
==
FALSE
,
"Creating a RichEdit should not make any EN_CHANGE events
\n
"
);
ok
(
change_received
==
FALSE
,
"Creating a RichEdit should not make any EN_CHANGE events
\n
"
);
DestroyWindow
(
edit
);
DestroyWindow
(
parent
);
}
...
...
dlls/riched20/txthost.c
View file @
5c997de8
...
...
@@ -1142,6 +1142,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
WCHAR
*
textW
=
NULL
;
LONG
codepage
=
unicode
?
CP_UNICODE
:
CP_ACP
;
int
len
;
LRESULT
evmask
;
ITextServices_OnTxInPlaceActivate
(
host
->
text_srv
,
NULL
);
...
...
@@ -1150,7 +1151,10 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
text
=
unicode
?
(
void
*
)
createW
->
lpszName
:
(
void
*
)
createA
->
lpszName
;
textW
=
ME_ToUnicode
(
codepage
,
text
,
&
len
);
}
ITextServices_TxSendMessage
(
host
->
text_srv
,
EM_GETEVENTMASK
,
0
,
0
,
&
evmask
);
ITextServices_TxSendMessage
(
host
->
text_srv
,
EM_SETEVENTMASK
,
0
,
evmask
&
~
ENM_CHANGE
,
&
evmask
);
ITextServices_TxSetText
(
host
->
text_srv
,
textW
);
ITextServices_TxSendMessage
(
host
->
text_srv
,
EM_SETEVENTMASK
,
0
,
evmask
,
NULL
);
if
(
lparam
)
ME_EndToUnicode
(
codepage
,
textW
);
break
;
}
...
...
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