On Monday 29 December 2025 20:21:49 LIU Hao wrote:
> 在 2025-12-29 19:23, Pali Rohár 写道:
> > Yes, it really exists. That is why I spotted this inconsistency.
> > 
> > That api-ms-win-core-console-l1-1-0.dll library is part of the
> > Microsoft Visual C++ Redistributable for Visual Studio 2019 16.7 package
> > which contains UCRT libraries, these api-ms-win-core-* things and
> > VC runtime libs (msvcp140.dll, vcamp140.dll, vccorlib140.dll,
> > vcomp140.dll, vcruntime140.dll).
> 
> Ahh I see it now. You made me reinstall XP once, and I could still find my CD 
> key. :)
> 
> Indeed, `PeekConsoleInputA` is exported from
> api-ms-win-core-console-l1-1-0.dll. However the proposed patch also removes
> it from api-ms-win-core-console-l1-2-0 which I think we should not do.

The problem is that symbol cannot be in two of those def files as both
def files are "merged" into one import library. And then linker randomly
chose one. Symbol needs to be exactly in one api-ms-win-core-* def file.

This symbol duplicity was solving the original commit
6b37f1f37a9639899efd4aba6a7d506682895792 mentioned in the body of my
commit message.


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to