[PATCH 1/2] urlmon: Fix HttpProtocol behavior when InternetQueryDataAvailable returns ERROR_IO_PENDING.

Misha Koshelev mk144210 at bcm.edu
Sun Jul 15 16:32:28 CDT 2007


Technically a separate patchset from the tests as the tests do not _depend_ on ERROR_IO_PENDING
ever being returned (as it never has to be), although with the tests when ERROR_IO_PENDING is
returned it is actually tested rather than thinking it is the end of data as before.

Anyhow, this patch fixes a few things that I found needed to be changed in urlmon to really amke
it work with native behavior for ERROR_IO_PENDING from InternetQueryDataAvailable (native is too
slow to make this apparent), specifically once we are waiting for IO InternetQueryDataAvailable
does not get called again from Read until the INTERNET_STATUS_REQUEST_COMPLETE notification, b/c 
otherwise you will get a bunch of these and it doesn't quite work right (and it's not called on 
natiev in this situation either).
---
 dlls/urlmon/http.c |   38 ++++++++++++++++++++++----------------
 1 files changed, 22 insertions(+), 16 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 04c4d5e7d62ddd045dd0fd3f51542ece29ed6996.diff
Type: text/x-patch
Size: 3060 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070715/7baf7dd9/04c4d5e7d62ddd045dd0fd3f51542ece29ed6996.bin


More information about the wine-patches mailing list