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
6c781a1f
Commit
6c781a1f
authored
Mar 26, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Remove accesses to the editor in TxNotify.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8e17457f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
txthost.c
dlls/riched20/txthost.c
+6
-7
No files found.
dlls/riched20/txthost.c
View file @
6c781a1f
...
...
@@ -467,12 +467,11 @@ DEFINE_THISCALL_WRAPPER(ITextHostImpl_TxNotify,12)
DECLSPEC_HIDDEN
HRESULT
__thiscall
ITextHostImpl_TxNotify
(
ITextHost2
*
iface
,
DWORD
iNotify
,
void
*
pv
)
{
struct
host
*
host
=
impl_from_ITextHost
(
iface
);
HWND
hwnd
=
host
->
window
;
UINT
id
;
if
(
!
host
->
editor
||
!
host
->
editor
->
hwndP
arent
)
return
S_OK
;
if
(
!
host
->
p
arent
)
return
S_OK
;
id
=
GetWindowLongW
(
hwnd
,
GWLP_ID
);
id
=
GetWindowLongW
(
host
->
window
,
GWLP_ID
);
switch
(
iNotify
)
{
...
...
@@ -490,16 +489,16 @@ DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxNotify( ITextHost2 *iface, DW
if
(
!
info
)
return
E_FAIL
;
info
->
hwndFrom
=
h
wnd
;
info
->
hwndFrom
=
h
ost
->
window
;
info
->
idFrom
=
id
;
info
->
code
=
iNotify
;
SendMessageW
(
host
->
editor
->
hwndP
arent
,
WM_NOTIFY
,
id
,
(
LPARAM
)
info
);
SendMessageW
(
host
->
p
arent
,
WM_NOTIFY
,
id
,
(
LPARAM
)
info
);
break
;
}
case
EN_UPDATE
:
/* Only sent when the window is visible. */
if
(
!
IsWindowVisible
(
hwnd
))
if
(
!
IsWindowVisible
(
host
->
window
))
break
;
/* Fall through */
case
EN_CHANGE
:
...
...
@@ -509,7 +508,7 @@ DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxNotify( ITextHost2 *iface, DW
case
EN_MAXTEXT
:
case
EN_SETFOCUS
:
case
EN_VSCROLL
:
SendMessageW
(
host
->
editor
->
hwndParent
,
WM_COMMAND
,
MAKEWPARAM
(
id
,
iNotify
),
(
LPARAM
)
hwnd
);
SendMessageW
(
host
->
parent
,
WM_COMMAND
,
MAKEWPARAM
(
id
,
iNotify
),
(
LPARAM
)
host
->
window
);
break
;
case
EN_MSGFILTER
:
...
...
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