wine/dlls/riched20
Jinoh Kang 548d7179e3 riched20: Don't call wrap_marked_paras_dc() before the editor is fully initialized.
Today, CreateTextServices() sometimes triggers an assertion failure in
select_style().

When ME_MakeEditor() calls ME_MakeFirstParagraph(), the editor
(ME_TextEditor) is not in a fully initialized state.  For example, the
font cache (pFontCache) is not fully initialized, which sometimes makes
select_style() believe that the cache slots are fully occupied.

Fix this by delaying the call to wrap_marked_paras_dc() until the editor
is fully initialized.

Also, delay the call to ITextHost::TxReleaseDC() until after
wrap_marked_paras_dc(), since we need the device context a bit longer.

Fixes: b70eb32c5f
2023-07-14 09:14:22 +02:00
..
tests riched20: Don't call ME_UpdateRepaint inside set_selection(). 2023-07-11 18:34:17 +02:00
caret.c
clipboard.c riched20: Use nameless unions/structs. 2023-07-10 21:15:55 +02:00
context.c
editor.c riched20: Don't call wrap_marked_paras_dc() before the editor is fully initialized. 2023-07-14 09:14:22 +02:00
editor.h riched20: Factor out device context acquisition from ME_MakeFirstParagraph. 2023-07-14 09:14:20 +02:00
editstr.h
list.c
Makefile.in
ocr_reverse.cur
ocr_reverse.svg
paint.c
para.c riched20: Don't call wrap_marked_paras_dc() before the editor is fully initialized. 2023-07-14 09:14:22 +02:00
reader.c
res.h
riched20.spec
riched_tom.idl
richole.c riched20: Use nameless unions/structs. 2023-07-10 21:15:55 +02:00
row.c
rtf.h riched20: Remove DECLSPEC_HIDDEN usage. 2023-07-05 11:21:32 +02:00
run.c
string.c
style.c
table.c
txthost.c riched20: Remove DECLSPEC_HIDDEN usage. 2023-07-05 11:21:32 +02:00
txtsrv.c riched20: Remove DECLSPEC_HIDDEN usage. 2023-07-05 11:21:32 +02:00
undo.c
version.rc
wrap.c
writer.c riched20: Use nameless unions/structs. 2023-07-10 21:15:55 +02:00