https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f650cbdb680a07bf5bd19…
commit f650cbdb680a07bf5bd198e7771304e72f71525e
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Fri Jan 28 02:28:36 2022 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Jan 30 01:02:04 2022 +0100
[CONCFG] IsValidConsoleFont(): Validate font against charset corresponding to selected
code page.
---
win32ss/user/winsrv/concfg/font.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/user/winsrv/concfg/font.c b/win32ss/user/winsrv/concfg/font.c
index 2c5e9abc83a..42ed5052036 100644
--- a/win32ss/user/winsrv/concfg/font.c
+++ b/win32ss/user/winsrv/concfg/font.c
@@ -376,7 +376,7 @@ IsValidConsoleFont(
Param.CodePage = CodePage;
RtlZeroMemory(&lf, sizeof(lf));
- lf.lfCharSet = DEFAULT_CHARSET; // CodePageToCharSet(CodePage);
+ lf.lfCharSet = CodePageToCharSet(CodePage);
// lf.lfPitchAndFamily = FIXED_PITCH | FF_MODERN;
StringCchCopyW(lf.lfFaceName, ARRAYSIZE(lf.lfFaceName), FaceName);