VirtualBox

Ignore:
Timestamp:
Oct 22, 2009 12:34:22 PM (15 years ago)
Author:
vboxsync
Message:

*,RTFileOpen: Fixing RTFileOpen flag misdesign: The deny, access and action flags are mandatory now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DrvRawFile.cpp

    r22653 r23973  
    150150     * Open the raw file.
    151151     */
    152     rc = RTFileOpen(&pThis->OutputFile, pThis->pszLocation, RTFILE_O_CREATE_REPLACE | RTFILE_O_WRITE | RTFILE_O_DENY_NONE);
     152    rc = RTFileOpen(&pThis->OutputFile, pThis->pszLocation, RTFILE_O_WRITE | RTFILE_O_CREATE_REPLACE | RTFILE_O_DENY_NONE);
    153153    if (RT_FAILURE(rc))
    154154    {
     
    180180
    181181    if (pThis->OutputFile != NIL_RTFILE)
    182     {   
     182    {
    183183        RTFileClose(pThis->OutputFile);
    184184        pThis->OutputFile = NIL_RTFILE;
     
    200200
    201201    if (pThis->OutputFile != NIL_RTFILE)
    202     {   
     202    {
    203203        RTFileClose(pThis->OutputFile);
    204204        pThis->OutputFile = NIL_RTFILE;
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