On Fri, 31 Oct 2025 16:37:07 GMT, Brian Burkhalter <[email protected]> wrote:
>> `File.getCanonicalPath` invokes `GetFinalPathNameByHandle` on the result of >> `canonicalize0` which causes the drive letter of a mapped drive to be >> converted to a UNC prefix. If such a substitution is detected, this request >> proposes to revert the conversion of drive letter to UNC prefix before >> returning the canonical path. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit since the last revision: > > 8355342: Fix call to wcanonicalize in JDK_Canonicalize; clean up code src/java.base/windows/native/libjava/WinNTFileSystem_md.c line 62: > 60: /* -- Path operations -- */ > 61: > 62: extern WCHAR* wcanonicalize(const WCHAR *path, WCHAR *out, int len); The first parameter here is `const WCHAR*` but `WCHAR*` in canoncailize_md.c, can you check that? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/27324#discussion_r2482310239
