[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: fwrite - fixed handling of buffered data
From: Andriy Palamarchuk <apa3a () yahoo ! com>
Date: 2002-03-27 14:46:44
[Download RAW message or body]
Changelog:
fwrite - fixed handling of already buffered data.
Andriy Palamarchuk
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
["file.diff" (application/octet-stream)]
Index: dlls/msvcrt/file.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/file.c,v
retrieving revision 1.21
diff -u -r1.21 file.c
--- dlls/msvcrt/file.c 21 Mar 2002 01:23:32 -0000 1.21
+++ dlls/msvcrt/file.c 27 Mar 2002 13:26:09 -0000
@@ -2152,7 +2152,7 @@
if (size == 0)
return 0;
if(file->_cnt) {
- int pcnt=(file->_cnt>wrcnt)? file->_cnt: wrcnt;
+ int pcnt=(file->_cnt>wrcnt)? wrcnt: file->_cnt;
memcpy(file->_ptr, ptr, pcnt);
file->_cnt -= pcnt;
file->_ptr += pcnt;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic