mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +00:00
- Removed old debug code which may crash a user mode application.
svn path=/trunk/; revision=9283
This commit is contained in:
parent
00010bb088
commit
a4b7d6a7a5
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue