msvcrt: Use correct type for fread and fwrite return values.

This commit is contained in:
Iván Matellanes 2014-11-03 22:40:53 +01:00 committed by Alexandre Julliard
parent 20e0a6f20d
commit 89d91168a0
1 changed files with 2 additions and 2 deletions

View File

@ -3755,7 +3755,7 @@ int CDECL MSVCRT__flsbuf(int c, MSVCRT_FILE* file)
*/
MSVCRT_size_t CDECL MSVCRT_fwrite(const void *ptr, MSVCRT_size_t size, MSVCRT_size_t nmemb, MSVCRT_FILE* file)
{
int ret;
MSVCRT_size_t ret;
MSVCRT__lock_file(file);
ret = MSVCRT__fwrite_nolock(ptr, size, nmemb, file);
@ -4016,7 +4016,7 @@ int CDECL MSVCRT__fputchar(int c)
*/
MSVCRT_size_t CDECL MSVCRT_fread(void *ptr, MSVCRT_size_t size, MSVCRT_size_t nmemb, MSVCRT_FILE* file)
{
int ret;
MSVCRT_size_t ret;
MSVCRT__lock_file(file);
ret = MSVCRT__fread_nolock(ptr, size, nmemb, file);