diff --git a/basis/io/files/windows/windows.factor b/basis/io/files/windows/windows.factor index 6a83fcec27..4b0c8cb130 100755 --- a/basis/io/files/windows/windows.factor +++ b/basis/io/files/windows/windows.factor @@ -325,9 +325,14 @@ M: winnt root-directory? ( path -- ? ) TR: normalize-separators "/" "\\" ; M: winnt normalize-path ( string -- string' ) - absolute-path - normalize-separators - prepend-prefix ; + dup [ "//" head? ] [ "\\\\" head? ] bi + or [ + normalize-separators + ] [ + absolute-path + normalize-separators + prepend-prefix + ] if ; M: winnt CreateFile-flags ( DWORD -- DWORD ) FILE_FLAG_OVERLAPPED bitor ;