VirtualBox

Changeset 3999 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Aug 2, 2007 11:20:25 AM (17 years ago)
Author:
vboxsync
Message:

bugfix

Location:
trunk/src/VBox/HostServices/SharedFolders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflCase.cpp

    r3993 r3999  
    193193    uint32_t       cbDirEntry, cbComponent;
    194194    int            rc = VERR_FILE_NOT_FOUND;
    195     PRTDIR         hSearch;
     195    PRTDIR         hSearch = 0;
    196196    char           szWildCard[4];
    197197
     
    257257        RTMemFree(pDirEntry);
    258258
    259     RTDirClose(hSearch);
     259    if (hSearch)
     260        RTDirClose(hSearch);
    260261    return rc;
    261262}
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r3997 r3999  
    100100    uint32_t       cbDirEntry, cbComponent;
    101101    int            rc = VERR_FILE_NOT_FOUND;
    102     PRTDIR         hSearch;
     102    PRTDIR         hSearch = 0;
    103103    char           szWildCard[4];
    104104
     
    165165        RTMemFree(pDirEntry);
    166166
    167     RTDirClose(hSearch);
     167    if (hSearch)
     168        RTDirClose(hSearch);
    168169    return rc;
    169170}
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