Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

static int krdrRTFileDestroy ( PKRDR  pRdr  )  [static]

Destroy the file provider instance.

0 on success, OS specific error code on failure. On failure, the file provider instance will be in an indeterminate state - don't touch it!
pRdr The file provider instance.

Definition at line 571 of file kRdrFile-iprt.cpp.

References KRDRFILE::File, NULL, and KRDRFILE::pvMapping.

    PKRDRFILE    pRdrFile = (PKRDRFILE)pRdr;
    int          rc;

    rc = RTFileClose(pRdrFile->File);

    if (pRdrFile->pvMapping)
        pRdrFile->pvMapping = NULL;

    return rc;

Generated by  Doxygen 1.6.0   Back to index