- Removed old debug code which may crash a user mode application.

svn path=/trunk/; revision=9283
This commit is contained in:
Hartmut Birr 2004-05-02 20:08:29 +00:00
parent 00010bb088
commit a4b7d6a7a5

View file

@ -62,7 +62,8 @@ size_t _write(int _fd, const void* _buf, size_t _nbyte)
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 @@ size_t _write(int _fd, const void* _buf, size_t _nbyte)
*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)) {