On Wed Nov 12 11:21:56 2025 +0000, Torge Matthies wrote:
You mean determining that we are in this invalid state by looking at the last returned error? Since there are multiple different error values, and there may be other calls that return these errors for different conditions, we shouldn't really determine whether we're in this invalid handle state by looking at the last returned error, I'd say.
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.