VirtualBox

Changeset 41441 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
May 24, 2012 5:26:51 PM (13 years ago)
Author:
vboxsync
Message:

VBoxTray/SharedFolders/win: fix double mem free crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxSharedFolders.cpp

    r34613 r41441  
    3636        rc = VbglR3SharedFolderGetMappings(u32ClientId, true /* Only process auto-mounted folders */,
    3737                                           &paMappings, &cMappings);
    38         if (RT_SUCCESS(rc))
     38        if (RT_SUCCESS(rc) && cMappings)
    3939        {
    4040#if 0
     
    144144        rc = VbglR3SharedFolderGetMappings(u32ClientId, true /* Only process auto-mounted folders */,
    145145                                           &paMappings, &cMappings);
    146         if (RT_SUCCESS(rc))
     146        if (RT_SUCCESS(rc) && cMappings)
    147147        {
    148148            for (uint32_t i = 0; i < cMappings && RT_SUCCESS(rc); i++)
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