Commit in reactos/lib/msvcrt/io on MAIN
write.c+2-31.11 -> 1.12
- Removed old debug code which may crash a user mode application.

reactos/lib/msvcrt/io
write.c 1.11 -> 1.12
diff -u -r1.11 -r1.12
--- write.c	3 Dec 2003 17:17:03 -0000	1.11
+++ write.c	2 May 2004 20:08:29 -0000	1.12
@@ -62,7 +62,8 @@
             if (count == 0) {
                 if (!WriteFile(_get_osfhandle(_fd), tmp, BUFSIZE, &wbyte, NULL)) {
                    //ReportLastError();
-                   result = -1;
+		   _dosmaperr(GetLastError());
+		   result = -1;
                    break;
                 }
                 if (wbyte < BUFSIZE) {
@@ -76,11 +77,9 @@
          *out++ = *in++;
          count--;
          if (count == 0 || _nbyte == 0) {
-            int tmp_len_debug = strlen(tmp);
             if (!WriteFile(_get_osfhandle(_fd), tmp, BUFSIZE - count, &wbyte, NULL)) {
 				_dosmaperr(GetLastError());
 				result = -1; 
-				tmp_len_debug = 0;
 				break;
             }
             if (wbyte < (BUFSIZE - count)) {
CVSspam 0.2.8