On Mon, Nov 29, 2021 at 7:51 AM Michael Paquier <michael@paquier.xyz> wrote:
We know that GetFileInformationByHandle() would be able to work in the scope of win32stat.c as it is supported down to Windows XP so we would be covered, so switching to that instead of GetFinalPathNameByHandleA() would take care of the problem. Better to call that only for a standard stream, only for the emulation of fstat(), in the spirit of the original fix.
Fair enough. Windows XP support is a discussion for another thread.