patch 8.1.2120: some MB_ macros are more complicated than necessary
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
diff --git a/src/os_mswin.c b/src/os_mswin.c
index 5fb4809..b5ef8fc 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -1654,7 +1654,7 @@
/* This is wrong when printing spaces for a TAB. */
if (p[len] != NUL)
{
- wlen = MB_PTR2LEN(p + len);
+ wlen = mb_ptr2len(p + len);
wp = enc_to_utf16(p + len, &wlen);
if (wp != NULL)
{