VirtualBox

Changeset 80614 in vbox


Ignore:
Timestamp:
Sep 5, 2019 10:24:44 PM (5 years ago)
Author:
vboxsync
Message:

Main/MachineLaunchVMCommonWorker: Simplified darwin specific code for kicking off VirtualVM or override. Was making too many unnecessary string copies. [fix] bugref:9341

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/MachineLaunchVMCommonWorker.cpp

    r80613 r80614  
    9393    int vrc = RTPathAppPrivateArch(szPath, sizeof(szPath));
    9494    AssertRCReturn(vrc, vrc);
    95     size_t cchBufLeft = RTPathEnsureTrailingSeparator(szPath, sizeof(szPath));
    96     AssertReturn(cchBufLeft > 0, VERR_FILENAME_TOO_LONG);
     95    size_t cbBufLeft = RTPathEnsureTrailingSeparator(szPath, sizeof(szPath));
     96    AssertReturn(cbBufLeft > 0, VERR_FILENAME_TOO_LONG);
    9797    char *pszNamePart = &szPath[cbBufLeft]; NOREF(pszNamePart);
    9898    cbBufLeft = sizeof(szPath) - cbBufLeft;
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