Fixed incorrect parameters order in calls to fwrite

Andriy Palamarchuk apa3a at
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fwrite.diff
Type: application/octet-stream
Size: 3016 bytes
Desc: fwrite.diff
Url :

More information about the wine-patches mailing list