Changeset 55443 in vbox for trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
- Timestamp:
- Apr 27, 2015 12:09:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r55442 r55443 3018 3018 LogFlowThisFunc(("Entering for '%s'\n", aName.c_str())); 3019 3019 3020 Utf8Str strName(aName);3021 3022 3020 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 3023 3021 … … 3051 3049 3052 3050 /* first, remove the given folder */ 3053 rc = i_removeSharedFolder( strName);3051 rc = i_removeSharedFolder(aName); 3054 3052 if (FAILED(rc)) return rc; 3055 3053 3056 3054 /* first, remove the machine or the global folder if there is any */ 3057 3055 SharedFolderDataMap::const_iterator it; 3058 if (i_findOtherSharedFolder( strName, it))3059 { 3060 rc = i_createSharedFolder( strName, it->second);3056 if (i_findOtherSharedFolder(aName, it)) 3057 { 3058 rc = i_createSharedFolder(aName, it->second); 3061 3059 /* don't check rc here because we need to remove the console 3062 3060 * folder from the collection even on failure */ … … 3064 3062 } 3065 3063 3066 m_mapSharedFolders.erase( strName);3064 m_mapSharedFolders.erase(aName); 3067 3065 3068 3066 /* Notify console callbacks after the folder is removed from the list. */
Note:
See TracChangeset
for help on using the changeset viewer.