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
1bc48be4
Commit
1bc48be4
authored
Aug 21, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Aug 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Initialize ME_TextEditor members in ME_MakeEditor().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5cc8c9fe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
editor.c
dlls/riched20/editor.c
+2
-0
txtsrv.c
dlls/riched20/txtsrv.c
+0
-2
No files found.
dlls/riched20/editor.c
View file @
1bc48be4
...
...
@@ -2898,6 +2898,7 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
ed
->
reOle
=
NULL
;
ed
->
bEmulateVersion10
=
bEmulateVersion10
;
ed
->
styleFlags
=
0
;
ed
->
exStyleFlags
=
0
;
ITextHost_TxGetPropertyBits
(
texthost
,
(
TXTBIT_RICHTEXT
|
TXTBIT_MULTILINE
|
TXTBIT_READONLY
|
TXTBIT_USEPASSWORD
|
...
...
@@ -2958,6 +2959,7 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
}
ME_CheckCharOffsets
(
ed
);
SetRectEmpty
(
&
ed
->
rcFormat
);
ed
->
bDefaultFormatRect
=
TRUE
;
ITextHost_TxGetSelectionBarWidth
(
ed
->
texthost
,
&
selbarwidth
);
if
(
selbarwidth
)
{
...
...
dlls/riched20/txtsrv.c
View file @
1bc48be4
...
...
@@ -414,8 +414,6 @@ HRESULT WINAPI CreateTextServices(IUnknown *pUnkOuter, ITextHost *pITextHost, I
ITextImpl
->
IUnknown_inner
.
lpVtbl
=
&
textservices_inner_vtbl
;
ITextImpl
->
ITextServices_iface
.
lpVtbl
=
&
textservices_vtbl
;
ITextImpl
->
editor
=
ME_MakeEditor
(
pITextHost
,
FALSE
);
ITextImpl
->
editor
->
exStyleFlags
=
0
;
SetRectEmpty
(
&
ITextImpl
->
editor
->
rcFormat
);
if
(
pUnkOuter
)
ITextImpl
->
outer_unk
=
pUnkOuter
;
...
...
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