urlmon: Fix timing issue with FLAG_REQUEST_COMPLETE and InternetQueryDataAvailable in HttpProtocol_Continue.

Misha Koshelev mk144210 at bcm.edu
Mon Aug 13 00:24:57 CDT 2007


I had fixed this in HttpProtocol_Read quite a while back, and had meant to fix it in Continue as well
but somehow never did (I had believed this would not actually occur in Continue, that we would not
be getting the very first INTERNET_STATUS_REQUEST_COMPLETE with no data available, but apparently I was
wrong).

In any case this fixes a new bug (regression) after unrolling the BindToStorage hack where gecko installer
would sometimes not start downloading at all because the first InternetQueryDataAvailable would fail
with ERROR_IO_PENDING while at the same time the first REQUEST_COMPLETE would come in but lo and behold
FLAG_REQUEST_COMPLETE would get cleared when it returned and Read would return E_PENDING henceforth.
---
 dlls/urlmon/http.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2015cebed819c74e125a31a280e8058e5c9f71ba.diff
Type: text/x-patch
Size: 1327 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070813/99800060/2015cebed819c74e125a31a280e8058e5c9f71ba.bin


More information about the wine-patches mailing list