VirtualBox

Changeset 5075 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Sep 27, 2007 12:48:07 PM (17 years ago)
Author:
vboxsync
Message:

Leave the host service clipboard lock before completing the message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/service.cpp

    r4071 r5075  
    193193        if (pClient->fAsync)
    194194        {
     195            /* The client waits for a responce. */
    195196            bool fMessageReturned = vboxSvcClipboardReturnMsg (pClient, pClient->async.paParms);
    196197           
     198            /* Make a copy of the handle. */
     199            VBOXHGCMCALLHANDLE callHandle = pClient->async.callHandle;
     200           
    197201            if (fMessageReturned)
    198202            {
     203                /* There is a responce. */
     204                pClient->fAsync = false;
     205            }
     206           
     207            vboxSvcClipboardUnlock ();
     208           
     209            if (fMessageReturned)
     210            {
    199211                LogFlow(("vboxSvcClipboardReportMsg: CallComplete\n"));
    200                 g_pHelpers->pfnCallComplete (pClient->async.callHandle, VINF_SUCCESS);
    201                 pClient->fAsync = false;
     212                g_pHelpers->pfnCallComplete (callHandle, VINF_SUCCESS);
    202213            }
    203214        }
    204 
    205         vboxSvcClipboardUnlock ();
     215        else
     216        {
     217            vboxSvcClipboardUnlock ();
     218        }
    206219    }
    207220}
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