VirtualBox

Changeset 51254 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
May 15, 2014 8:00:46 AM (11 years ago)
Author:
vboxsync
Message:

Additions/SharedFolders: fixed ShflStringInitBuffer(), do really use this function for initializing the SHFLSTRING content; some cosmetcis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSharedFolders.cpp

    r44529 r51254  
    250250    {
    251251        RT_ZERO(*pString);
    252         ShflStringInitBuffer(pString, SHFL_MAX_LEN);
     252        if (!ShflStringInitBuffer(pString, SHFL_MAX_LEN))
     253        {
     254            RTMemFree(pString);
     255            return VERR_INVALID_PARAMETER;
     256        }
    253257
    254258        VbglHGCMParmUInt32Set(&Msg.root, u32Root);
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