platform/pocketpc.c
branchstable-2.0
changeset 1178 dec7e09cb3d9
parent 1175 e55bbdb69dfd
child 1294 184697ee7a77
--- a/platform/pocketpc.c	Mon Aug 01 17:37:06 2011 -0400
+++ b/platform/pocketpc.c	Mon Aug 01 17:52:51 2011 -0400
@@ -467,7 +467,7 @@
     LowPos = SetFilePointer(Handle, 0, &HighPos, FILE_CURRENT);
     if ((LowPos == INVALID_SET_FILE_POINTER) && (GetLastError() != NO_ERROR))
     {
-        BAIL_MACRO(win32strerror(), 0);
+        BAIL_MACRO(win32strerror(), -1);
     } /* if */
     else
     {
@@ -513,7 +513,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);