On Mon Dec 1 20:06:13 2025 +0000, Jacek Caban wrote:
I didn't mean "last error". I was referring to the `dwError` value, which basically works as a state variable. It's in a generic header for some reason and the naming is confusing. I created !9644 to clean that up, but it still seems appropriate to use the same mechanism here if possible. I'm not sure how much the existing code was tested, so it might need some tweaks, but I think it's worth a try.
Oh, that makes it clearer. It looks like that variable is also only used in `QueryDataAvailable` and `ReadFile` in the http code, so that works for this. I'll change the code to just set that variable to `ERROR_INTERNET_INCORRECT_HANDLE_STATE`, and detect this handle state from that condition.