fix stream-read1 on win32
parent
a2a0c4bc6e
commit
e35e99e575
|
@ -90,11 +90,15 @@ M: string do-write ( string stream -- )
|
||||||
dup win32-stream-eof? [
|
dup win32-stream-eof? [
|
||||||
drop t
|
drop t
|
||||||
] [
|
] [
|
||||||
[
|
dup win32-stream-file-size [
|
||||||
dup win32-stream-file-size
|
[
|
||||||
swap win32-stream-fileptr
|
dup win32-stream-file-size
|
||||||
- zero?
|
swap win32-stream-fileptr
|
||||||
] keep set-win32-stream-eof?
|
- zero?
|
||||||
|
] keep set-win32-stream-eof?
|
||||||
|
] [
|
||||||
|
drop
|
||||||
|
] if
|
||||||
f
|
f
|
||||||
] if ;
|
] if ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue