=?UTF-8?Q?Iv=C3=A1n=20Matellanes=20?=: msvcrt: Use correct type for fread and fwrite return values.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Nov 4 09:19:31 CST 2014
Module: wine
Branch: master
Commit: 89d91168a08ebe3b14b092755622f1ca69660e8e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=89d91168a08ebe3b14b092755622f1ca69660e8e
Author: Iván Matellanes <matellanesivan at gmail.com>
Date: Mon Nov 3 22:40:53 2014 +0100
msvcrt: Use correct type for fread and fwrite return values.
---
dlls/msvcrt/file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c
index 295cbdc..fefab94 100644
--- a/dlls/msvcrt/file.c
+++ b/dlls/msvcrt/file.c
@@ -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);
More information about the wine-cvs
mailing list