]> gitweb.factorcode.org Git - factor.git/commitdiff
fix win32 error handling
authorDoug Coleman <erg@jobim.local>
Thu, 30 Apr 2009 18:11:51 +0000 (13:11 -0500)
committerDoug Coleman <erg@jobim.local>
Thu, 30 Apr 2009 18:11:51 +0000 (13:11 -0500)
basis/io/backend/windows/nt/nt.factor

index 46f8be22f0f1c42ab4ceada6bc763606e89cbc9e..bb5c115549c9c24cb7c9c2846ab78e08f92df62c 100755 (executable)
@@ -105,7 +105,7 @@ M: winnt seek-handle ( n seek-type handle -- )
         GetLastError {
             { [ dup expected-io-error? ] [ drop f ] }
             { [ dup eof? ] [ drop t ] }
-            [ win32-error-string throw ]
+            [ n>win32-error-string throw ]
         } cond
     ] [ f ] if ;