fixed handling of UNC paths under windows

8byte-jose 2011-01-25 13:32:21 +01:00
parent 5cd8718b71
commit 420cf2f08e
1 changed files with 8 additions and 3 deletions

View File

@ -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 ;