VirtualBox

Changeset 53163 in vbox for trunk/src/VBox/Devices/USB


Ignore:
Timestamp:
Oct 29, 2014 10:14:36 AM (10 years ago)
Author:
vboxsync
Message:

VUSBSniffer: replace existing USB captures instead of failing

Location:
trunk/src/VBox/Devices/USB
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/DrvVUSBRootHub.cpp

    r53161 r53163  
    10011001        if (RT_FAILURE(rc))
    10021002            return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS,
    1003                                        N_("Failed to create USB sniffer instance (does the file already exist?)"));
     1003                                       N_("VUSBSniffer cannot open '%s' for writing. The directory must exist and it must be writable for the current user"),
     1004                                       pszCaptureFilename);
    10041005
    10051006        MMR3HeapFree(pszCaptureFilename);
  • trunk/src/VBox/Devices/USB/VUSBSniffer.cpp

    r53161 r53163  
    448448        if (RT_SUCCESS(rc))
    449449        {
    450             rc = RTFileOpen(&pThis->hFile, pszCaptureFilename, RTFILE_O_DENY_NONE | RTFILE_O_CREATE | RTFILE_O_WRITE | RTFILE_O_READ);
     450            rc = RTFileOpen(&pThis->hFile, pszCaptureFilename, RTFILE_O_DENY_NONE | RTFILE_O_CREATE_REPLACE | RTFILE_O_WRITE | RTFILE_O_READ);
    451451            if (RT_SUCCESS(rc))
    452452            {
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