Changeset 73177 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Jul 17, 2018 12:19:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/CloudUserProfileManagerImpl.cpp
r73174 r73177 129 129 { 130 130 char szHomeDir[RTPATH_MAX]; 131 RTPathUserHome(szHomeDir, sizeof(szHomeDir)); 132 Utf8Str strConfigPath(szHomeDir); 133 strConfigPath.append(RTPATH_SLASH_STR) 134 .append(".oci") 135 .append(RTPATH_SLASH_STR) 136 .append("config"); 137 LogRel(("config = %s\n", strConfigPath.c_str())); 138 hrc = ptrOCIUserProfileList->readProfiles(strConfigPath); 139 if (SUCCEEDED(hrc)) 131 int vrc = RTPathUserHome(szHomeDir, sizeof(szHomeDir)); 132 if (RT_SUCCESS(vrc)) 140 133 { 141 LogRel(("Reading profiles from %s has been done\n", strConfigPath.c_str())); 134 Utf8Str strConfigPath(szHomeDir); 135 strConfigPath.append(RTPATH_SLASH_STR) 136 .append(".oci") 137 .append(RTPATH_SLASH_STR) 138 .append("config"); 139 LogRel(("config = %s\n", strConfigPath.c_str())); 140 hrc = ptrOCIUserProfileList->readProfiles(strConfigPath); 141 if (SUCCEEDED(hrc)) 142 { 143 LogRel(("Reading profiles from %s has been done\n", strConfigPath.c_str())); 144 } 145 else 146 { 147 LogRel(("Reading profiles from %s hasn't been done\n", strConfigPath.c_str())); 148 } 149 ptrCloudUserProfileList = ptrOCIUserProfileList; 150 hrc = ptrCloudUserProfileList.queryInterfaceTo(aProfiles.asOutParam()); 142 151 } 143 152 else 144 { 145 LogRel(("Reading profiles from %s hasn't been done\n", strConfigPath.c_str())); 146 } 147 ptrCloudUserProfileList = ptrOCIUserProfileList; 148 hrc = ptrCloudUserProfileList.queryInterfaceTo(aProfiles.asOutParam()); 153 hrc = setErrorVrc(vrc); 149 154 } 150 155 }
Note:
See TracChangeset
for help on using the changeset viewer.