VirtualBox

Changeset 78083 in vbox for trunk


Ignore:
Timestamp:
Apr 10, 2019 11:59:32 AM (6 years ago)
Author:
vboxsync
Message:

DnD/GuestHost: Initialize file / directory handles in DnDURIObject::DnDURIObject(enmType, ...).

File:
1 edited

Legend:

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

    r78020 r78083  
    4949{
    5050    RT_ZERO(u);
     51
     52    switch (m_enmType)
     53    {
     54        case Type_File:
     55        {
     56            u.File.hFile = NIL_RTFILE;
     57            break;
     58        }
     59
     60        case Type_Directory:
     61        {
     62            u.Dir.hDir = NIL_RTDIR;
     63            break;
     64        }
     65
     66        default:
     67            break;
     68    }
    5169}
    5270
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