fix win32 error handling
parent
64ac2bae6d
commit
31ce2252e7
|
@ -105,7 +105,7 @@ M: winnt seek-handle ( n seek-type handle -- )
|
||||||
GetLastError {
|
GetLastError {
|
||||||
{ [ dup expected-io-error? ] [ drop f ] }
|
{ [ dup expected-io-error? ] [ drop f ] }
|
||||||
{ [ dup eof? ] [ drop t ] }
|
{ [ dup eof? ] [ drop t ] }
|
||||||
[ win32-error-string throw ]
|
[ n>win32-error-string throw ]
|
||||||
} cond
|
} cond
|
||||||
] [ f ] if ;
|
] [ f ] if ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue