src: fix ESM path resolution on Windows
Windows has some reserved file names such as con
, prn
, nul
, etc. Such files can be accessed only if the path is prefixed with \\.\
Fixes #29572 (closed)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines