19 Jan
2026
19 Jan
'26
3:37 p.m.
ntdll already serves as a CRT of last resort. From a CRT perspective, treating initterm like, for example, sprintf and expecting it to always be available seems reasonable to me. That said, it is a bit of a complexity trade-off, so sure, we can avoid that.
Well, `sprintf` is exported from ntdll, but `initterm` isn't. In this case the last resort would be kernelbase. Obviously that wouldn't work for modules that don't import kernelbase, but I don't think it justifies adding a static import lib to ntdll. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9265#note_127332