On Mon Jan 23 11:13:04 2023 +0000, Bernhard Kölbl wrote:
Getting this correct is a bit tricky tbh. How about
else if (SUCCEEDED(hr)) hr = COR_E_INVALIDOPERATION;
Yes, but incorporating https://gitlab.winehq.org/wine/wine/-/merge_requests/1948/diffs#note_21372 will make the check unnecessary.