Changeset 41441 in vbox
- Timestamp:
- May 24, 2012 5:26:51 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78172
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxSharedFolders.cpp
r34613 r41441 36 36 rc = VbglR3SharedFolderGetMappings(u32ClientId, true /* Only process auto-mounted folders */, 37 37 &paMappings, &cMappings); 38 if (RT_SUCCESS(rc) )38 if (RT_SUCCESS(rc) && cMappings) 39 39 { 40 40 #if 0 … … 144 144 rc = VbglR3SharedFolderGetMappings(u32ClientId, true /* Only process auto-mounted folders */, 145 145 &paMappings, &cMappings); 146 if (RT_SUCCESS(rc) )146 if (RT_SUCCESS(rc) && cMappings) 147 147 { 148 148 for (uint32_t i = 0; i < cMappings && RT_SUCCESS(rc); i++) -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSharedFolders.cpp
r40732 r41441 104 104 int rc = VbglR3SharedFolderGetMappings(u32ClientId, true /* Only process auto-mounted folders */, 105 105 &paMappings, &cMappings); 106 if (RT_SUCCESS(rc) )106 if (RT_SUCCESS(rc) && cMappings) 107 107 { 108 108 for (uint32_t i = 0; i < cMappings && !fFound; i++) … … 186 186 ppaMappingsTemp = (PVBGLR3SHAREDFOLDERMAPPING)pvNew; 187 187 } 188 else189 *ppaMappings = ppaMappingsTemp;190 188 } 191 189 } … … 194 192 if ( ppaMappingsTemp 195 193 && (RT_FAILURE(rc) || !*pcMappings)) 194 { 196 195 RTMemFree(ppaMappingsTemp); 196 ppaMappingsTemp = NULL; 197 } 198 199 *ppaMappings = ppaMappingsTemp; 197 200 198 201 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.