Changeset 32754 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Sep 24, 2010 9:58:42 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/tar.cpp
r32752 r32754 463 463 break; 464 464 /* Seek back, to positionate the file pointer at the start of the header. */ 465 rc = RTFileSeek(hFile, - sizeof(RTTARRECORD), RTFILE_SEEK_CURRENT, puOffset);465 rc = RTFileSeek(hFile, -(int64_t)sizeof(RTTARRECORD), RTFILE_SEEK_CURRENT, puOffset); 466 466 fFound = true; 467 467 break; … … 806 806 RTTARFILE_VALID_RETURN(pFileInt); 807 807 808 if ( !pFileInt->fOpenMode &RTFILE_O_WRITE)808 if ((pFileInt->fOpenMode & RTFILE_O_WRITE) != RTFILE_O_WRITE) 809 809 return VERR_WRITE_ERROR; 810 810 … … 834 834 RTTARFILE_VALID_RETURN(pFileInt); 835 835 836 if ( !pFileInt->fOpenMode &RTFILE_O_WRITE)836 if ((pFileInt->fOpenMode & RTFILE_O_WRITE) != RTFILE_O_WRITE) 837 837 return VERR_WRITE_ERROR; 838 838 … … 892 892 RTTARFILE_VALID_RETURN(pFileInt); 893 893 894 if ( !pFileInt->fOpenMode &RTFILE_O_WRITE)894 if ((pFileInt->fOpenMode & RTFILE_O_WRITE) != RTFILE_O_WRITE) 895 895 return VERR_WRITE_ERROR; 896 896 … … 927 927 RTTARFILE_VALID_RETURN(pFileInt); 928 928 929 if ( !pFileInt->fOpenMode &RTFILE_O_WRITE)929 if ((pFileInt->fOpenMode & RTFILE_O_WRITE) != RTFILE_O_WRITE) 930 930 return VERR_WRITE_ERROR; 931 931 … … 964 964 RTTARFILE_VALID_RETURN(pFileInt); 965 965 966 if ( !pFileInt->fOpenMode &RTFILE_O_WRITE)966 if ((pFileInt->fOpenMode & RTFILE_O_WRITE) != RTFILE_O_WRITE) 967 967 return VERR_WRITE_ERROR; 968 968
Note:
See TracChangeset
for help on using the changeset viewer.