Current News
Archived News
Search News
Discussion Forum


Old Forum
Install Programs More Downloads...
Troubleshooting
Source Code
Format Specs.
Misc. Information
Non-SF Stuff
Links




ShadowFlare [Wed, 16 Jan 2013 08:45:40 +0000 (01:45 -0700)]
1  2 
SFUtil.cpp
SFmpqapi.cpp

diff --cc SFUtil.cpp
@@@ -58,14 -58,18 +58,18 @@@ UInt64 SFSetFilePointer(HANDLE hFile, I
  
        FilePos.i64 = nDistance;
  
 -      FilePos.i32[0] = ::SetFilePointer(hFile, FilePos.i32[0], &FilePos.i32[1], dwMoveMethod);
 +      FilePos.ui32[0] = ::SetFilePointer(hFile, FilePos.i32[0], &FilePos.i32[1], dwMoveMethod);
  
+ #ifdef INVALID_SET_FILE_POINTER
        if (FilePos.ui32[0] == INVALID_SET_FILE_POINTER) {
+ #else
+       if (FilePos.ui32[0] == INVALID_FILE_SIZE) {
+ #endif
                if (::GetLastError() != NO_ERROR)
 -                      return -1;
 +                      return (UInt64)-1;
        }
  
 -      return FilePos.i64;
 +      return FilePos.ui64;
  }
  
  size_t strlnlen(const char *strline)
diff --cc SFmpqapi.cpp
Simple merge