[PATCH try2 2/5] wininet: Free handle structs in WININET_Release.
Misha Koshelev
mk144210 at bcm.edu
Fri Aug 17 23:55:20 CDT 2007
This is necessary so that we send the INTERNET_STATUS_HANDLE_CLOSING before, for example
INTERNET_STATUS_CLOSE_CONNECTION gets sent from HTTP_CloseConnection in HTTP_CloseHTTPRequestHandle.
This can be tested on native/with native wininet on wine because although we do not send
INTERNET_STATUS_CLOSE_CONNECTION correctly when the data is finished reading on wine as native
does, if we simply don't read all the data (or any data, changing the while TRUE's to while FALSE's
in the InternetReadFiel_test for example in wininet/tests/http.c) then these do in fact get sent
as a response to InternetCloseHandle like they do on wine, and INTERNET_STATUS_HANDLE_CLOSING
always gets sent afterwards (last).
---
dlls/wininet/ftp.c | 4 ----
dlls/wininet/http.c | 2 --
dlls/wininet/internet.c | 2 +-
3 files changed, 1 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 77a1fd01ba48344c1e6a8008cbbf80aec9f105f5.diff
Type: text/x-patch
Size: 2365 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070817/fb7fd1a6/77a1fd01ba48344c1e6a8008cbbf80aec9f105f5.bin
More information about the wine-patches
mailing list