Fix for wide character streams.

svn path=/trunk/; revision=3834
This commit is contained in:
Robert Dickenson 2002-12-08 16:14:28 +00:00
parent 91616f730f
commit a49981697a
4 changed files with 1294 additions and 1752 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
/* $Id: getc.c,v 1.6 2002/12/05 15:30:44 robd Exp $
/* $Id: getc.c,v 1.7 2002/12/08 16:11:59 robd Exp $
*
* ReactOS msvcrt library
*
@ -80,6 +80,9 @@ wint_t getwc(FILE *fp)
c = (wint_t)*((wchar_t*)(fp->_ptr))++;
} else {
c = _filwbuf(fp);
// need to fix by one values of fp->_ptr and fp->_cnt
fp->_ptr++;
fp->_cnt--;
}
} else {
#if 0

View file

@ -1,4 +1,4 @@
/* $Id: putc.c,v 1.6 2002/12/05 15:30:44 robd Exp $
/* $Id: putc.c,v 1.7 2002/12/08 16:14:28 robd Exp $
*
* ReactOS msvcrt library
*
@ -88,10 +88,10 @@ int putwc(wint_t c, FILE* fp)
} else {
#if 1
wint_t result;
result = _flsbuf((int)(c >> 8), fp);
result = _flsbuf(c, fp);
if (result == EOF)
return WEOF;
result = _flsbuf(c, fp);
result = _flsbuf((int)(c >> 8), fp);
if (result == EOF)
return WEOF;
return result;

View file

@ -109,7 +109,7 @@ CreateItemMoniker@12 @ 112
; CreateOleAdviseHolder @114
; CreatePointerMoniker @115
; CreateStdProgressIndicator @116
;CreateStreamOnHGlobal @ 117
CreateStreamOnHGlobal@12 @117
; DcomChannelSetHResult @118
; DllDebugObjectRPCHook @119
; DllGetClassObject @120