wininet: Don't close the connection if the caller passes in zero for the number of...
commit76507d475b59c4efb533dd05d1ab095f834faaba
authorRob Shearman <rob@codeweavers.com>
Mon, 28 May 2007 10:13:36 +0000 (28 11:13 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 29 May 2007 11:49:02 +0000 (29 13:49 +0200)
tree9a25dc488c35f8525295484f6ea15409512a6ea7
parentfa48cb042c9c658d9ba64fec294c23c735674e48
wininet: Don't close the connection if the caller passes in zero for the number of bytes to be read.

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
dlls/wininet/internet.c
dlls/wininet/tests/http.c