VirtualBox

Changeset 42385 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 25, 2012 11:52:31 AM (13 years ago)
Author:
vboxsync
Message:

Main/glue: Add a flag to GetVBoxUserHomeDirectory to disable creating the VirtualBox settings directory automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/com.cpp

    r41040 r42385  
    182182#endif // VBOX_WITH_XPCOM
    183183
    184 int GetVBoxUserHomeDirectory(char *aDir, size_t aDirLen)
     184int GetVBoxUserHomeDirectory(char *aDir, size_t aDirLen, bool fCreateDir)
    185185{
    186186    AssertReturn(aDir, VERR_INVALID_POINTER);
     
    211211        /* ensure the home directory exists */
    212212        if (RT_SUCCESS(vrc))
    213             if (!RTDirExists(aDir))
     213            if (!RTDirExists(aDir) && fCreateDir)
    214214                vrc = RTDirCreateFullPath(aDir, 0700);
    215215    }
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