Changeset 42385 in vbox
- Timestamp:
- Jul 25, 2012 11:52:31 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
include/VBox/com/com.h (modified) (1 diff)
-
src/VBox/Main/glue/com.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/com.h
r41040 r42385 73 73 * this method will return VERR_BUFFER_OVERFLOW. 74 74 * 75 * @param aDir Buffer to store the directory string in UTF-8 encoding. 76 * @param aDirLen Length of the supplied buffer including space for the 77 * terminating null character, in bytes. 78 * @return VBox status code. 75 * @param aDir Buffer to store the directory string in UTF-8 encoding. 76 * @param aDirLen Length of the supplied buffer including space for the 77 * terminating null character, in bytes. 78 * @param fCreateDir Flag whether to create the returned directory on success if it 79 * doesn't exist. 80 * @return VBox status code. 79 81 */ 80 int GetVBoxUserHomeDirectory(char *aDir, size_t aDirLen );82 int GetVBoxUserHomeDirectory(char *aDir, size_t aDirLen, bool fCreateDir = true); 81 83 82 84 /** -
trunk/src/VBox/Main/glue/com.cpp
r41040 r42385 182 182 #endif // VBOX_WITH_XPCOM 183 183 184 int GetVBoxUserHomeDirectory(char *aDir, size_t aDirLen )184 int GetVBoxUserHomeDirectory(char *aDir, size_t aDirLen, bool fCreateDir) 185 185 { 186 186 AssertReturn(aDir, VERR_INVALID_POINTER); … … 211 211 /* ensure the home directory exists */ 212 212 if (RT_SUCCESS(vrc)) 213 if (!RTDirExists(aDir) )213 if (!RTDirExists(aDir) && fCreateDir) 214 214 vrc = RTDirCreateFullPath(aDir, 0700); 215 215 }
Note:
See TracChangeset
for help on using the changeset viewer.

