VirtualBox

Changeset 23973 in vbox for trunk/src/VBox/Devices/Parallel


Ignore:
Timestamp:
Oct 22, 2009 12:34:22 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53801
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/Parallel/DrvHostParallel.cpp

    r22277 r23973  
    260260/**
    261261 * Construct a host parallel driver instance.
    262  * 
     262 *
    263263 * @copydoc FNPDMDRVCONSTRUCT
    264264 */
     
    303303     * Open the device
    304304     */
    305     rc = RTFileOpen(&pThis->FileDevice, pThis->pszDevicePath, RTFILE_O_OPEN | RTFILE_O_READWRITE);
     305    rc = RTFileOpen(&pThis->FileDevice, pThis->pszDevicePath, RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
    306306    if (RT_FAILURE(rc))
    307307        return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("Parallel#%d could not open '%s'"),
     
    433433    NULL,
    434434    /* pfnDetach */
    435     NULL, 
     435    NULL,
    436436    /* pfnPowerOff */
    437     NULL, 
     437    NULL,
    438438    /* pfnSoftReset */
    439439    NULL,
Note: See TracChangeset for help on using the changeset viewer.

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