Fixed incorrect parameters order in calls to fwrite

Andriy Palamarchuk apa3a at yahoo.com
Wed Mar 20 10:57:03 CST 2002


In dlls/msvcrd/file.c fwrite was called with
parameters "size" and "nmemb" swapped places. Usually
this works fine, bug fwrite crashed when
nmemb (passed as size) == 0.
Added check to fwrite for size == 0.
Fixed order and format of "size" and "nmemb"
parameters in calls to fwrite.

Andriy Palamarchuk

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fwrite.diff
Type: application/octet-stream
Size: 3016 bytes
Desc: fwrite.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20020320/06850340/fwrite.obj


More information about the wine-patches mailing list