VirtualBox

Changeset 80551 in vbox


Ignore:
Timestamp:
Sep 2, 2019 1:06:09 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133058
Message:

Shared Clipboard: Fixed saved state handling.

File:
1 edited

Legend:

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

    r80473 r80551  
    13331333            #endif /* VBOX_WITH_SHARED_CLIPBOARD_URI_LIST */
    13341334                        {
    1335                             if (g_pfnExtension)
    1336                             {
    1337                                 VBOXCLIPBOARDEXTPARMS parms;
    1338                                 RT_ZERO(parms);
    1339                                 parms.u32Format = u32Formats;
    1340 
    1341                                 g_pfnExtension(g_pvExtension, VBOX_CLIPBOARD_EXT_FN_FORMAT_ANNOUNCE, &parms, sizeof (parms));
    1342                             }
    1343 
    1344                             VBOXCLIPBOARDCLIENTCMDCTX cmdCtx;
    1345                             RT_ZERO(cmdCtx);
    1346 
    1347                             SHAREDCLIPBOARDFORMATDATA formatData;
    1348                             RT_ZERO(formatData);
    1349 
    1350                             formatData.uFormats = u32Formats;
    1351 
    1352                             rc = VBoxClipboardSvcImplFormatAnnounce(pClient, &cmdCtx, &formatData);
     1335                        if (g_pfnExtension)
     1336                        {
     1337                            VBOXCLIPBOARDEXTPARMS parms;
     1338                            RT_ZERO(parms);
     1339                            parms.u32Format = u32Formats;
     1340
     1341                            g_pfnExtension(g_pvExtension, VBOX_CLIPBOARD_EXT_FN_FORMAT_ANNOUNCE, &parms, sizeof (parms));
    13531342                        }
     1343
     1344                        VBOXCLIPBOARDCLIENTCMDCTX cmdCtx;
     1345                        RT_ZERO(cmdCtx);
     1346
     1347                        SHAREDCLIPBOARDFORMATDATA formatData;
     1348                        RT_ZERO(formatData);
     1349
     1350                        formatData.uFormats = u32Formats;
     1351
     1352                        rc = VBoxClipboardSvcImplFormatAnnounce(pClient, &cmdCtx, &formatData);
    13541353                    }
    13551354                }
     1355            }
    13561356            }
    13571357
     
    17541754       with the high bit set. */
    17551755    SSMR3PutU32(pSSM, UINT32_C(0x80000002));
    1756     int rc = SSMR3PutStructEx(pSSM, pClient, sizeof(*pClient), 0 /*fFlags*/, &g_aClipboardClientDataFields[0], NULL);
     1756    int rc = SSMR3PutStructEx(pSSM, &pClient->State, sizeof(pClient->State),
     1757                              0 /*fFlags*/, &g_aClipboardClientDataFields[0], NULL);
    17571758    AssertRCReturn(rc, rc);
    17581759
     
    17861787    if (lenOrVer == UINT32_C(0x80000002))
    17871788    {
    1788         rc = SSMR3GetStructEx(pSSM, pClient, sizeof(*pClient), 0 /*fFlags*/, &g_aClipboardClientDataFields[0], NULL);
     1789        rc = SSMR3GetStructEx(pSSM, &pClient->State, sizeof(pClient->State),
     1790                              0 /*fFlags*/, &g_aClipboardClientDataFields[0], NULL);
    17891791        AssertRCReturn(rc, rc);
    17901792    }
Note: See TracChangeset for help on using the changeset viewer.

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