On Tue, Dec 02, 2014 at 07:33:20PM +0200, Mohammad_AlSaleh wrote: > On Tue, Dec 02, 2014 at 01:45:35PM +0200, Mohammad_AlSaleh wrote: > > Hello. > > > > I followed the documentation's recommendation to use > > CURLOPT_XFERINFOFUNCTION instead of CURLOPT_PROGRESSFUNCTION. > > > > Quoting the documentation: > > "Unknown/unused argument values passed to the callback will be set to > > zero" > > > > So, I had checks in place to test the values of ultotal and ulnow. > > > > I built my application with MinGW (32bit) today. And a test run in wine > > shows non-zero values for ultotal. It was a simple HTTP download. > > > > Can anyone confirm this is a (probably harmless) bug in libcurl, and > > not something faulty at my side? > > A little update. > > It looks like ultotal and dlnow are swapped for some reason. I'll try to > figure out why.
Okay. It was my fault after all. Sorry for the noise. I was using off_t instead of curl_off_t as a type. I didn't notice my rookie mistake earlier because I usually use an x86_64 GNU/Linux system for development. ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
