VirtualBox

Changeset 32754 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Sep 24, 2010 9:58:42 AM (14 years ago)
Author:
vboxsync
Message:

Runtime: next burn fix try

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/tar.cpp

    r32752 r32754  
    463463                    break;
    464464                /* 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);
    466466                fFound = true;
    467467                break;
     
    806806    RTTARFILE_VALID_RETURN(pFileInt);
    807807
    808     if (!pFileInt->fOpenMode & RTFILE_O_WRITE)
     808    if ((pFileInt->fOpenMode & RTFILE_O_WRITE) != RTFILE_O_WRITE)
    809809        return VERR_WRITE_ERROR;
    810810
     
    834834    RTTARFILE_VALID_RETURN(pFileInt);
    835835
    836     if (!pFileInt->fOpenMode & RTFILE_O_WRITE)
     836    if ((pFileInt->fOpenMode & RTFILE_O_WRITE) != RTFILE_O_WRITE)
    837837        return VERR_WRITE_ERROR;
    838838
     
    892892    RTTARFILE_VALID_RETURN(pFileInt);
    893893
    894     if (!pFileInt->fOpenMode & RTFILE_O_WRITE)
     894    if ((pFileInt->fOpenMode & RTFILE_O_WRITE) != RTFILE_O_WRITE)
    895895        return VERR_WRITE_ERROR;
    896896
     
    927927    RTTARFILE_VALID_RETURN(pFileInt);
    928928
    929     if (!pFileInt->fOpenMode & RTFILE_O_WRITE)
     929    if ((pFileInt->fOpenMode & RTFILE_O_WRITE) != RTFILE_O_WRITE)
    930930        return VERR_WRITE_ERROR;
    931931
     
    964964    RTTARFILE_VALID_RETURN(pFileInt);
    965965
    966     if (!pFileInt->fOpenMode & RTFILE_O_WRITE)
     966    if ((pFileInt->fOpenMode & RTFILE_O_WRITE) != RTFILE_O_WRITE)
    967967        return VERR_WRITE_ERROR;
    968968
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette