VirtualBox

Ignore:
Timestamp:
Oct 20, 2015 10:05:12 AM (9 years ago)
Author:
vboxsync
Message:

DnD: Updates/bugfixes:

  • Added separate VBOXDNDDISCONNECTMSG message for letting Main know about client disconnects.
  • Various cleanups and bugfixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/DragAndDrop/DnDURIList.cpp

    r58212 r58329  
    2525#include <iprt/fs.h>
    2626#include <iprt/path.h>
     27#include <iprt/string.h>
    2728#include <iprt/symlink.h>
    2829#include <iprt/uri.h>
     
    448449    AssertReturn(cbData, VERR_INVALID_PARAMETER);
    449450
     451    if (!RTStrIsValidEncoding(static_cast<const char *>(pvData)))
     452        return VERR_INVALID_PARAMETER;
     453
    450454    RTCList<RTCString> lstURI =
    451         RTCString(static_cast<const char*>(pvData), cbData - 1).split("\r\n");
     455        RTCString(static_cast<const char *>(pvData), cbData - 1).split("\r\n");
    452456    if (lstURI.isEmpty())
    453457        return VINF_SUCCESS;
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