VirtualBox

忽略:
時間撮記:
2010-1-25 下午03:03:19 (15 年 以前)
作者:
vboxsync
訊息:

more warnings.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/HostServices/SharedClipboard/service.cpp

    r23885 r26010  
    338338    if (g_pClient != NULL)
    339339    {
    340         uint32_t u32ClientID = g_pClient->u32ClientID;
    341 
    342         svcDisconnect(NULL, u32ClientID, g_pClient);
     340        uint32_t u32OldClientID = g_pClient->u32ClientID;
     341
     342        svcDisconnect(NULL, u32OldClientID, g_pClient);
    343343        /* And free the resources in the hgcm subsystem. */
    344         g_pHelpers->pfnDisconnectClient(g_pHelpers->pvInstance, u32ClientID);
     344        g_pHelpers->pfnDisconnectClient(g_pHelpers->pvInstance, u32OldClientID);
    345345    }
    346346
     
    766766}
    767767
     768/**
     769 * This structure corresponds to the original layout of the
     770 * VBOXCLIPBOARDCLIENTDATA structure.  As the structure was saved as a whole
     771 * when saving state, we need to remember it forever in order to preserve
     772 * compatibility.
     773 *
     774 * (Starting with 3.1 this is no longer used.)
     775 *
     776 * @remarks Putting this outside svcLoadState to avoid visibility warning caused
     777 *          by -Wattributes.
     778 */
     779typedef struct CLIPSAVEDSTATEDATA
     780{
     781    struct CLIPSAVEDSTATEDATA *pNext;
     782    struct CLIPSAVEDSTATEDATA *pPrev;
     783
     784    VBOXCLIPBOARDCONTEXT *pCtx;
     785
     786    uint32_t u32ClientID;
     787
     788    bool fAsync: 1; /* Guest is waiting for a message. */
     789
     790    bool fMsgQuit: 1;
     791    bool fMsgReadData: 1;
     792    bool fMsgFormats: 1;
     793
     794    struct {
     795        VBOXHGCMCALLHANDLE callHandle;
     796        VBOXHGCMSVCPARM *paParms;
     797    } async;
     798
     799    struct {
     800         void *pv;
     801         uint32_t cb;
     802         uint32_t u32Format;
     803    } data;
     804
     805    uint32_t u32AvailableFormats;
     806    uint32_t u32RequestedFormat;
     807
     808} CLIPSAVEDSTATEDATA;
     809
    768810static DECLCALLBACK(int) svcLoadState(void *, uint32_t u32ClientID, void *pvClient, PSSMHANDLE pSSM)
    769811{
     
    790832    else if (lenOrVer == (SSMR3HandleHostBits (pSSM) == 64 ? 72 : 48))
    791833    {
    792         /**
    793          * This structure corresponds to the original layout of the
    794          * VBOXCLIPBOARDCLIENTDATA structure.  As the structure was saved as a whole
    795          * when saving state, we need to remember it forever in order to preserve
    796          * compatibility.
    797          *
    798          * (Starting with 3.1 this is no longer used.)
    799          */
    800         typedef struct _CLIPSAVEDSTATEDATA
    801         {
    802             struct _CLIPSAVEDSTATEDATA *pNext;
    803             struct _CLIPSAVEDSTATEDATA *pPrev;
    804 
    805             VBOXCLIPBOARDCONTEXT *pCtx;
    806 
    807             uint32_t u32ClientID;
    808 
    809             bool fAsync: 1; /* Guest is waiting for a message. */
    810 
    811             bool fMsgQuit: 1;
    812             bool fMsgReadData: 1;
    813             bool fMsgFormats: 1;
    814 
    815             struct {
    816                 VBOXHGCMCALLHANDLE callHandle;
    817                 VBOXHGCMSVCPARM *paParms;
    818             } async;
    819 
    820             struct {
    821                  void *pv;
    822                  uint32_t cb;
    823                  uint32_t u32Format;
    824             } data;
    825 
    826             uint32_t u32AvailableFormats;
    827             uint32_t u32RequestedFormat;
    828 
    829         } CLIPSAVEDSTATEDATA;
    830 
    831834        /**
    832835         * SSM descriptor table for the CLIPSAVEDSTATEDATA structure.
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette