https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7c75bc627bca59b9da1cf…
commit 7c75bc627bca59b9da1cfd574b5ea0ee2cfd4c9a
Author: jimtabor <james.tabor(a)reactos.org>
AuthorDate: Sun Jan 7 14:47:42 2018 -0600
[RichEd20] Fix structure by adding missing byte, see CORE-8452.
Update version, tell wine.
This fixes "Assertion failed: style->cbSize == sizeof(CHARFORMAT2W)".
---
sdk/include/psdk/richedit.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sdk/include/psdk/richedit.h b/sdk/include/psdk/richedit.h
index fc15dc3cc5..82c633eb60 100644
--- a/sdk/include/psdk/richedit.h
+++ b/sdk/include/psdk/richedit.h
@@ -27,7 +27,7 @@ extern "C" {
#endif
#ifndef _RICHEDIT_VER
-#define _RICHEDIT_VER 0x0210
+#define _RICHEDIT_VER 0x0300
#endif /* _RICHEDIT_VER */
#define cchTextLimitDefault 0x7fff
@@ -298,6 +298,7 @@ typedef struct _charformat2a {
BYTE bUnderlineType;
BYTE bAnimation;
BYTE bRevAuthor;
+ BYTE bReserved1;
} CHARFORMAT2A;
typedef struct _charformat2w {
@@ -320,6 +321,7 @@ typedef struct _charformat2w {
BYTE bUnderlineType;
BYTE bAnimation;
BYTE bRevAuthor;
+ BYTE bReserved1;
} CHARFORMAT2W;
DECL_WINELIB_TYPE_AW(CHARFORMAT2)