https://git.reactos.org/?p=reactos.git;a=commitdiff;h=409df2355edf82af0897f…
commit 409df2355edf82af0897f4798e663d7c15004fce
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Oct 12 19:38:41 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Thu Oct 12 19:38:41 2023 +0900
[MSPAINT] Do type-cast (BYTE) for lfItalic and lfUnderline
CORE-19094
---
base/applications/mspaint/textedit.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/base/applications/mspaint/textedit.cpp
b/base/applications/mspaint/textedit.cpp
index 376b1214045..39cc1ba40e3 100644
--- a/base/applications/mspaint/textedit.cpp
+++ b/base/applications/mspaint/textedit.cpp
@@ -340,8 +340,8 @@ void CTextEditWindow::UpdateFont()
ZeroMemory(&lf, sizeof(lf));
lf.lfCharSet = DEFAULT_CHARSET; // registrySettings.CharSet; // Ignore
lf.lfWeight = (registrySettings.Bold ? FW_BOLD : FW_NORMAL);
- lf.lfItalic = registrySettings.Italic;
- lf.lfUnderline = registrySettings.Underline;
+ lf.lfItalic = (BYTE)registrySettings.Italic;
+ lf.lfUnderline = (BYTE)registrySettings.Underline;
lstrcpyn(lf.lfFaceName, registrySettings.strFontName, _countof(lf.lfFaceName));
HDC hdc = GetDC();