https://bugs.winehq.org/show_bug.cgi?id=43902
--- Comment #2 from Olly Betts olly@survex.com --- (In reply to Gijs Vermeulen from comment #1)
Was this fixed by: https://source.winehq.org/git/wine.git/commit/ 677301a29cffa9474fcad4c284661171092510d5 ?
No - that doesn't affect the "(!(info->wxflag & WX_OPEN))" case, which still sets "ret = -1" without setting errno to EBADF.