updated for version 7.0057
diff --git a/src/os_mswin.c b/src/os_mswin.c
index a5e10be..c833113 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -1411,6 +1411,7 @@
     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);
     }