https://bugs.winehq.org/show_bug.cgi?id=53960
--- Comment #7 from cqwrteur euloanty@live.com --- Created attachment 73547 --> https://bugs.winehq.org/attachment.cgi?id=73547 A patch to fix the layout issue first
I am still trying to understand whether the _lock_file and _unlock_file part need to change too since I do not know how ms deals with this before UCRT. Also, according to the API documentation of MSDN, _lock and _unlock have been deprecated. The implementation in _UCRT always locks the CriticalSection in _iobuf even if it lives in _IOB_ENTRIES.
I would like to listen to how wine is going to deal with this.