On Mar 29 22:19, LIU Hao wrote: > 在 2023-03-29 21:33, Corinna Vinschen 写道: > > I don't think this is correct. Multiple backslashes are folded into a > > single backslash by the Windows API layer. Thus \\host\\share is not > > equivalent to > > > > \\host\<empty-share>\<dir-called-share> > > > > but to > > > > \\host\share > > > > Try this example, please: > > Well, I didn't use `GetFinalPathNameByHandle()`, but examined these paths in > CMD: > > C:\>dir \\192.168.1.8\\temp_share > The specified path is invalid. > > C:\>dir \\192.168.1.8\temp_share > (... directory contents follow ...) > > > As you can see, if we assume that CMD doesn't do path resolution itself, > these paths are not equivalent.
Well, CMD is just one application and, given how the Windows API works, is not free from bugs... Corinna _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public