26 Nov
2022
26 Nov
'22
7:26 p.m.
Piotr Caban (@piotr) commented about dlls/msvcrt/file.c:
{ ret = -1; msvcrt_set_errno(GetLastError()); + if (GetLastError() == ERROR_ACCESS_DENIED) + *_errno() = EBADF;
In bug you have attached test application. It will not be fixed by this change. errno should be set in ```c if (info_nd == &MSVCRT___badioinfo) { *_errno() = EBADF; ret = -1; } ``` case. Please also add the test to wine. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1553#note_17573