VirtualBox

Ignore:
Timestamp:
Dec 7, 2019 12:22:38 PM (5 years ago)
Author:
vboxsync
Message:

ClipboardStreamImpl-win.cpp: Point out wrong allocator for STATSTG::pwczName. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/ClipboardStreamImpl-win.cpp

    r82466 r82495  
    283283    if (pStatStg)
    284284    {
    285         RT_BZERO(pStatStg, sizeof(STATSTG));
     285        RT_ZERO(*pStatStg);
    286286
    287287        switch (dwFlags)
     
    293293            case STATFLAG_DEFAULT:
    294294            {
     295                /** @todo r=bird: This is using the wrong allocator.  According to MSDN the
     296                 * caller will pass this to CoTaskMemFree, so we should use CoTaskMemAlloc to
     297                 * allocate it. */
    295298                int rc2 = RTStrToUtf16(m_strPath.c_str(), &pStatStg->pwcsName);
    296299                if (RT_FAILURE(rc2))
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