add null check (for ntdll only)
fixes remaining test failure in ntdll:string

svn path=/trunk/; revision=64069
This commit is contained in:
Christoph von Wittich 2014-09-07 18:11:50 +00:00
parent c14e88bd12
commit 31ceb315a3

View file

@ -227,6 +227,11 @@ static
int
streamout_char(FILE *stream, int chr)
{
#ifdef _LIBCNT_
if ((stream->_flag & _IOSTRG) && (!stream->_ptr))
return 1;
#endif
#if defined(_USER32_WSPRINTF) || defined(_LIBCNT_)
/* Check if the buffer is full */
if (stream->_cnt < sizeof(TCHAR))