mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (rb_w32_write_console): should set writen length as the
return value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d432af3df7
commit
ee0a79b37f
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Sep 11 19:06:49 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_write_console): should set writen length as the
|
||||
return value.
|
||||
|
||||
Fri Sep 9 22:43:29 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* gems/bundled_gems: sort lines.
|
||||
|
|
|
@ -7119,8 +7119,7 @@ rb_w32_write_console(uintptr_t strarg, int fd)
|
|||
}
|
||||
reslen = 0;
|
||||
if (dwMode & 4) { /* ENABLE_VIRTUAL_TERMINAL_PROCESSING */
|
||||
DWORD written;
|
||||
if (!WriteConsoleW(handle, ptr, len, &written, NULL))
|
||||
if (!WriteConsoleW(handle, ptr, len, &reslen, NULL))
|
||||
reslen = (DWORD)-1L;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue