Skip to content

Commit

Permalink
fixed Utf8ToConsole()
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Jan 9, 2022
1 parent 08ca454 commit 861c5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mormot.core.os.windows.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ begin
begin
utf16 := Utf8Decode(S);
tmp.Init(length(utf16) * 3);
CharToOemBuffW(pointer(utf16), tmp.buf, tmp.len);
CharToOemBuffW(pointer(utf16), tmp.buf, length(utf16));
SetString(result, PAnsiChar(tmp.buf), StrLen(tmp.buf));
tmp.Done;
exit;
Expand Down

0 comments on commit 861c5de

Please sign in to comment.