http://bugs.winehq.org/show_bug.cgi?id=58737
--- Comment #4 from Hans Leidekker hans@meelstraat.net --- (In reply to Felix Hädicke from comment #3)
Created attachment 79364 [details] unsigned long long type for variables content_length / content_read
It works fine after changing variable type to unsigned long long for variables content_length and content_read. See attached patch.
Thanks for the bug report. UINT64 is more idiomatic than 'unsigned long long' here but otherwise the patch looks good. Would you mind opening an MR on gitlab.winehq.org?