Commit 6091bce
[release/9.0-staging] Fix UNC paths (#111499)
* Fix UNC paths
If the input file was a network path then the raw path returned by
GetFinalPathByHandle may return a UNC path. If so, and if the original
path wasn't a UNC path, and the original path doesn't need normalization,
we want to use the original path.
* Use MAXPATH instead
* Update src/native/corehost/hostmisc/pal.windows.cpp
Co-authored-by: Elinor Fung <elfung@microsoft.com>
* Update src/native/corehost/hostmisc/pal.windows.cpp
Co-authored-by: Elinor Fung <elfung@microsoft.com>
---------
Co-authored-by: Andy Gocke <angocke@microsoft.com>
Co-authored-by: Elinor Fung <elfung@microsoft.com>1 parent 77e45d3 commit 6091bce
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
887 | | - | |
888 | | - | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
889 | 893 | | |
890 | 894 | | |
891 | 895 | | |
| |||
0 commit comments