hedgewars/uUtils.pas
changeset 10594 7a61f321f399
parent 10574 1636b0efa415
child 10595 6781190b053d
--- a/hedgewars/uUtils.pas	Sun Nov 30 16:18:19 2014 -0500
+++ b/hedgewars/uUtils.pas	Sun Nov 30 22:48:28 2014 +0100
@@ -559,7 +559,7 @@
 
 {$IFNDEF PAS2C}
     // if everything fails, write to stderr
-    if (length(UserPathPrefix) = 0) or (IOResult = 0) then
+    if (length(UserPathPrefix) = 0) or (IOResult <> 0) then
         logFile:= stderr;
 {$ENDIF}
 {$I+}