https://bugs.winehq.org/show_bug.cgi?id=27827
--- Comment #16 from Anastasius Focht focht@gmx.net --- Hello folks,
revisiting, still present.
https://source.winehq.org/git/wine.git/blob/123c0543e0bb4c99fbee0a568e786405...
One might think the conversion of this module to PE format in some years will solve this. It will not, because of a recent change:
https://source.winehq.org/git/wine.git/commitdiff/05b774fb48dac5f412e3490313... ("makedep: Build builtin DLLs with ucrtbase.")
which causes linkage of almost every builtin against 'ucrtbase.dll' instead of 'msvcrt.dll' unless there is an explicit import of old CRT. Afaik Windows doesn't do this, all OS/system dlls still link against 'msvcrt.dll'.
Remaining ones linking against 'msvcrt.dll' due to explicit import in current Wine 5.5 64-bit WINEPREFIX (includes app):
--- snip --- $ grep -ralZi msvcrt .wine/drive_c | xargs -r0i bash -c "echo "{}" && winedump -j import "{}" | sed -n '/msvcrt.dll/,/^$/Ip'" | grep -i -B1 msvcrt.dll
.wine/drive_c/windows/syswow64/msvcirt.dll offset 00018d1c msvcrt.dll -- .wine/drive_c/windows/syswow64/msvcrt20.dll offset 0000dc59 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/browser/components/browsercomps.dll offset 00037464 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/mozglue.dll offset 000e5814 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/plugin-container.exe offset 00022450 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/libEGL.dll offset 00305c50 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/libGLESv2.dll offset 0032dc3c msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/nss3.dll offset 001fcc28 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/nssdbm3.dll offset 0001f028 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/xul.dll offset 03b02cc8 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/gmp-clearkey/0.1/clearkey.dll offset 000e4c14 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/mozavutil.dll offset 00038014 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/lgpllibs.dll offset 00035628 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/softokn3.dll offset 0002f828 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/freebl3.dll offset 0006303c msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/nssckbi.dll offset 00066828 msvcrt.dll -- .wine/drive_c/windows/syswow64/gecko/2.47.1/wine_gecko/mozavcodec.dll offset 001aec28 msvcrt.dll -- .wine/drive_c/windows/syswow64/msvcp60.dll offset 000a9f0b msvcrt.dll -- .wine/drive_c/windows/syswow64/ntoskrnl.exe offset 000294ef msvcrt.dll -- .wine/drive_c/windows/system32/msvcirt.dll offset 00018bce msvcrt.dll -- .wine/drive_c/windows/system32/msvcrt20.dll offset 0000cb47 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/browser/components/browsercomps.dll offset 00036864 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/mozglue.dll offset 000e9814 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/plugin-container.exe offset 00020050 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/libEGL.dll offset 00341250 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/libGLESv2.dll offset 0036883c msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/nss3.dll offset 0022b828 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/nssdbm3.dll offset 00024828 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/xul.dll offset 0432f6c8 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/gmp-clearkey/0.1/clearkey.dll offset 000ec614 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/mozavutil.dll offset 0003c814 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/lgpllibs.dll offset 00034c28 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/softokn3.dll offset 00035028 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/freebl3.dll offset 0006723c msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/nssckbi.dll offset 00078a28 msvcrt.dll -- .wine/drive_c/windows/system32/gecko/2.47.1/wine_gecko/mozavcodec.dll offset 001ada28 msvcrt.dll -- .wine/drive_c/windows/system32/msvcp60.dll offset 000ae05d msvcrt.dll -- .wine/drive_c/windows/system32/ntoskrnl.exe offset 0002c636 msvcrt.dll -- .wine/drive_c/windows/winsxs/x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.42_none_deadbeef/msvcr80.dll offset 00086350 msvcrt.dll -- .wine/drive_c/Program Files (x86)/PTC/Creo Elements/Direct Modeling Express 6.0/binNT/dbghelp.dll offset 00093464 msvcrt.dll -- .wine/drive_c/Program Files (x86)/PTC/Creo Elements/Direct Modeling Express 6.0/help/installation/scripts/uninstall.exe offset 00005c28 msvcrt.dll -- .wine/drive_c/Program Files (x86)/PTC/Creo Elements/Direct Modeling Express 6.0/help/modeling_help.exe offset 00005c28 msvcrt.dll --- snip ---
For Wine's 'netapi32.dll' it's probably ok to have an explicit import of old CRT to fix this bug, although it's no longer Wine (system-wide) default CRT linkage.
$ wine --version wine-5.5
Regards