0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.1a

This commit is contained in:
Bram Moolenaar
2007-05-06 12:40:34 +00:00
parent 623fe606ae
commit 36f5ac0859

View File

@@ -5072,7 +5072,8 @@ buf_write_bytes(ip)
* fail. */ * fail. */
len = WideCharToMultiByte(FIO_GET_CP(flags), 0, len = WideCharToMultiByte(FIO_GET_CP(flags), 0,
(LPCWSTR)ip->bw_conv_buf, (int)fromlen / sizeof(WCHAR), (LPCWSTR)ip->bw_conv_buf, (int)fromlen / sizeof(WCHAR),
(LPSTR)to, (int)(ip->bw_conv_buflen - fromlen), 0, &bad); (LPSTR)to, (int)(ip->bw_conv_buflen - fromlen), 0,
&bad);
if (bad) if (bad)
{ {
ip->bw_conv_error = TRUE; ip->bw_conv_error = TRUE;
@@ -5201,7 +5202,7 @@ buf_write_bytes(ip)
#endif #endif
/* Repeat the write(), it may be interrupted by a signal. */ /* Repeat the write(), it may be interrupted by a signal. */
while (len) while (len > 0)
{ {
wlen = vim_write(ip->bw_fd, buf, len); wlen = vim_write(ip->bw_fd, buf, len);
if (wlen <= 0) /* error! */ if (wlen <= 0) /* error! */