Piotr Caban (@piotr) commented about dlls/msvcrt/tests/file.c:
+ offsetof(FILE, _cnt)==offsetof(struct test_iobuf, _cnt), "FILE layout incorrect"); +#ifdef _UCRT + ok(stdout!=stdin+1, "ucrt stdout FILE must not be adject to stdin"); + ok(_IOBUFFER_CRT == 0x0040 && _IOBUFFER_CRT == _IOMYBUF, "UCRT _IOBUFFER_CRT should be 0x0040"); +#else + ok(stdout==stdin+1, "msvcrt stdout FILE must be adject to stdin"); + ok(_IOMYBUF == 0x0008, "MSVCRT _IOBUFFER_CRT should be 0x0008"); +#endif + + tempf = _tempnam(".","wne"); + file = fopen(tempf, "wb"); + + fprintf(file, "%s", "Hello World\n"); + ptrold = file->_ptr; + cntold = file->_cnt; + if (ptrold && cntold) Why is this `if` check needed?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5752#note_72108