[前][次][番号順一覧][スレッド一覧]

ruby-changes:41953

From: usa <ko1@a...>
Date: Tue, 8 Mar 2016 17:34:40 +0900 (JST)
Subject: [ruby-changes:41953] usa:r54027 (trunk): * win32/win32.c (rb_w32_write_console): now no need to check

usa	2016-03-08 17:34:35 +0900 (Tue, 08 Mar 2016)

  New Revision: 54027

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54027

  Log:
    * win32/win32.c (rb_w32_write_console): now no need to check
      ERROR_CALL_NOT_IMPLEMENTED because it is for old Win9X.

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54026)
+++ ChangeLog	(revision 54027)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Mar  8 17:33:38 2016  NAKAMURA Usaku  <usa@r...>
+
+	* win32/win32.c (rb_w32_write_console): now no need to check
+	  ERROR_CALL_NOT_IMPLEMENTED because it is for old Win9X.
+
 Tue Mar  8 16:54:29 2016  NAKAMURA Usaku  <usa@r...>
 
 	* win32/win32.c (rb_w32_write_console): stop the VT100 emulation if the
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 54026)
+++ win32/win32.c	(revision 54027)
@@ -7071,11 +7071,8 @@ rb_w32_write_console(uintptr_t strarg, i https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L7071
     reslen = 0;
     if (dwMode & 4) {	/* ENABLE_VIRTUAL_TERMINAL_PROCESSING */
 	DWORD written;
-	if (!WriteConsoleW(handle, ptr, len, &written, NULL)) {
-	    if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
-		disable = TRUE;
+	if (!WriteConsoleW(handle, ptr, len, &written, NULL))
 	    reslen = (DWORD)-1L;
-	}
     }
     else {
 	while (len > 0) {
@@ -7084,8 +7081,6 @@ rb_w32_write_console(uintptr_t strarg, i https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L7081
 	    if (curlen > 0) {
 		DWORD written;
 		if (!WriteConsoleW(handle, ptr, curlen, &written, NULL)) {
-		    if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
-			disable = TRUE;
 		    reslen = (DWORD)-1L;
 		    break;
 		}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]