msvcrt: Fix buffer allocation in setvbuf.

This commit is contained in:
Piotr Caban 2014-06-29 14:58:13 +02:00 committed by Alexandre Julliard
parent b9e306ee78
commit 0350b6c7fd
1 changed files with 1 additions and 1 deletions

View File

@ -4506,7 +4506,7 @@ int CDECL MSVCRT_setvbuf(MSVCRT_FILE* file, char *buf, int mode, MSVCRT_size_t s
file->_flag |= MSVCRT__USERBUF;
file->_bufsiz = size;
}else {
file->_base = file->_ptr = malloc(size);
file->_base = file->_ptr = MSVCRT_malloc(size);
if(!file->_base) {
file->_bufsiz = 0;
MSVCRT__unlock_file(file);