fixed handling of UNC paths under windows
parent
bdc0526f37
commit
b3f0ff51aa
|
@ -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 ;
|
||||
|
|
Loading…
Reference in New Issue