VirtualBox

Ignore:
Timestamp:
Jan 23, 2014 12:14:27 PM (11 years ago)
Author:
vboxsync
Message:

Build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp

    r50177 r50179  
    191191    }
    192192
    193     if (RT_SUCCESS(rc))
    194     {
    195         OleInitialize(NULL);
    196 
    197         pThis->RegisterAsDropTarget();
    198 
     193    HRESULT hr = OleInitialize(NULL);
     194    if (SUCCEEDED(hr))
     195    {
     196#ifdef VBOX_WITH_DRAG_AND_DROP_GH
     197        rc = pThis->RegisterAsDropTarget();
     198#endif
     199    }
     200    else
     201    {
     202        LogRelFunc(("Unable to initialize OLE, hr=%Rhrc\n", hr));
     203        rc = VERR_COM_UNEXPECTED;
     204    }
     205
     206    if (RT_SUCCESS(rc))
     207    {
    199208        bool fShutdown = false;
    200 
    201209        do
    202210        {
     
    864872    {
    865873        rc = makeFullscreen();
    866         /*if (RT_SUCCESS(rc))
    867             rc = RegisterAsDropTarget();*/
    868 
    869874        if (RT_SUCCESS(rc))
    870875        {
     
    961966            uDefAction = DND_COPY_ACTION;
    962967            uAllActions = uDefAction;
     968
     969            /** @todo There can be more than one format, separated
     970             *        with \r\n. */
    963971            strFormat = "text/plain;charset=utf-8";
    964972        }
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