0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

updated for version 7.0057

This commit is contained in:
Bram Moolenaar
2005-03-07 23:09:59 +00:00
parent fd91ecbbe0
commit 44ecf65f74
7 changed files with 44 additions and 47 deletions

View File

@@ -1411,6 +1411,7 @@ acp_to_enc(str, str_size, out, outlen)
MultiByteToWideChar_alloc(GetACP(), 0, str, str_size, &widestr, outlen);
if (widestr != NULL)
{
++*outlen; /* Include the 0 after the string */
*out = ucs2_to_enc((short_u *)widestr, outlen);
vim_free(widestr);
}