platform/win32.c
branchstable-1.0
changeset 1179 eea580b4e199
parent 1177 05a842260409
child 1648 93b4c3bc6b9d
--- a/platform/win32.c	Mon Aug 01 17:37:06 2011 -0400
+++ b/platform/win32.c	Mon Aug 01 17:55:45 2011 -0400
@@ -897,7 +897,7 @@
     if ( (LowPos == PHYSFS_INVALID_SET_FILE_POINTER) &&
          (GetLastError() != NO_ERROR) )
     {
-        BAIL_MACRO(win32strerror(), 0);
+        BAIL_MACRO(win32strerror(), -1);
     } /* if */
     else
     {
@@ -944,7 +944,7 @@
         return 1;  /* we're definitely at EOF. */
 
     /* Get the current position in the file */
-    if ((FilePosition = __PHYSFS_platformTell(opaque)) != 0)
+    if ((FilePosition = __PHYSFS_platformTell(opaque)) != -1
     {
         /* Non-zero if EOF is equal to the file length */
         retval = (FilePosition == FileLength);