]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/io/files/windows/windows.factor
Revert "Replace "n>win32-error-string throw" with windows-error instance throwing"
[factor.git] / basis / io / files / windows / windows.factor
index 9b5006701de2d9d9d4aef67e859fbb9dc1a12f61..518fa8daab5c40bc121f4d312281b6f013eae0df 100644 (file)
@@ -76,7 +76,7 @@ SYMBOL: master-completion-port
             { [ dup integer? ] [ ] }
             { [ dup array? ] [
                 first dup eof?
-                [ drop 0 ] [ throw-windows-error ] if
+                [ drop 0 ] [ n>win32-error-string throw ] if
             ] }
         } cond
     ] with-timeout ;
@@ -147,7 +147,7 @@ M: windows handle-length ( handle -- n/f )
         GetLastError {
             { [ dup expected-io-error? ] [ drop f ] }
             { [ dup eof? ] [ drop t ] }
-            [ throw-windows-error ]
+            [ n>win32-error-string throw ]
         } cond
     ] [ f ] if ;