wininet: Don't close the connection of the caller passes in zero for the number of bytes to be read.

Robert Shearman rob at codeweavers.com
Mon May 28 05:13:36 CDT 2007


Only close the connection when the bytes read equals the content length.

Fixup HTTP_DrainContent, which relied on the previous incorrect 
behaviour to instead close connections with no content length manually.
---
  dlls/wininet/http.c       |    6 ++++++
  dlls/wininet/internet.c   |    2 +-
  dlls/wininet/tests/http.c |    1 +
  3 files changed, 8 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1a6e6108eb574cde954157fc5315d5f72373dfea.diff
Type: text/x-patch
Size: 1496 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070528/79227feb/1a6e6108eb574cde954157fc5315d5f72373dfea.bin


More information about the wine-patches mailing list