]> gitweb.factorcode.org Git - factor.git/commitdiff
windows.streams: get rid of workaround for stream-tell bug
authorJoe Groff <arcata@gmail.com>
Wed, 7 Jul 2010 20:52:18 +0000 (13:52 -0700)
committerJoe Groff <arcata@gmail.com>
Wed, 7 Jul 2010 20:52:18 +0000 (13:52 -0700)
basis/windows/streams/streams.factor

index 5ec2664ea851daf7505afbcbbbf1133a72d1520f..33c519e5006c422979ec4d42c66b6eee0cb19e91 100644 (file)
@@ -69,11 +69,10 @@ SPECIALIZED-ARRAY: uchar
 :: IStream-unlock-region ( stream offset cb lock-type -- hresult )\r
     STG_E_INVALIDFUNCTION ;\r
 \r
-FROM: io.ports => tell-handle ;\r
 :: stream-size ( stream -- size )\r
     stream stream-tell :> old-pos\r
     0 seek-end stream stream-seek\r
-    stream handle>> tell-handle :> size\r
+    stream stream-tell :> size\r
     old-pos seek-absolute stream stream-seek\r
     size ;\r
 \r