On Fri Feb 17 06:41:51 2023 +0000, Alex Henrie wrote:
Never mind, I just found Jacek's explanation at https://bugs.winehq.org/show_bug.cgi?id=51465#c28:
It's not clear to me that linking to msvcrt.dll would make things much
better. We would then be possibly missing ucrtbase.dll being loaded. On Windows, ucrtbase.dll ends up being used in quite some cases and I think that usually both msvcrt.dll and ucrtbase.dll end up being loaded. For each DLL where _recalloc would be nice, I checked its dependencies on Windows 11 with Dependency Walker. All of them had msvcrt as a dependency and not ucrtbase. Even user32 had msvcrt as a dependency. So, it seems to me that ucrtbase being loaded instead of or in addition to msvcrt is the exception rather than the rule, and it would be better to make msvcrt the default in Wine.
Really though, the existence of even one Windows DLL that loads both CRT libraries means that Wine is going to need a mechanism to do the same. So there may not be much point in arguing about which library is a better default when we're going to want both.