mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[crt]
add null check (for ntdll only) fixes remaining test failure in ntdll:string svn path=/trunk/; revision=64069
This commit is contained in:
parent
c14e88bd12
commit
31ceb315a3
1 changed files with 5 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue