Changeset 85714 in vbox for trunk/src/VBox/HostServices/DragAndDrop
- Timestamp:
- Aug 12, 2020 12:40:56 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139858
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/DragAndDrop/VBoxDragAndDropSvc.cpp
r85712 r85714 53 53 DragAndDropClient(uint32_t idClient) 54 54 : HGCM::Client(idClient) 55 , uProtocolVerDeprecated(0) 55 56 , fGuestFeatures0(VBOX_DND_GF_NONE) 56 57 , fGuestFeatures1(VBOX_DND_GF_NONE) … … 70 71 public: 71 72 73 /** Protocol version used by this client. 74 * Deprecated; only used for keeping backwards compatibility. */ 75 uint32_t uProtocolVerDeprecated; 72 76 /** Guest feature flags, VBOX_DND_GF_0_XXX. */ 73 77 uint64_t fGuestFeatures0; … … 531 535 if (rc == VINF_SUCCESS) /* Note: rc might be VINF_HGCM_ASYNC_EXECUTE! */ 532 536 { 533 LogFlowFunc(("Client %RU32: Protocol v%RU32\n", pClient->GetClientID(), pClient->GetProtocolVer()));534 535 537 rc = VERR_INVALID_PARAMETER; /* Play safe by default. */ 536 538 537 539 /* Whether the client's advertised protocol sends context IDs with commands. */ 538 const bool fHasCtxID = pClient-> GetProtocolVer()>= 3;540 const bool fHasCtxID = pClient->uProtocolVerDeprecated >= 3; 539 541 540 542 /* Current parameter index to process. */ … … 619 621 data.uProtocol = uProtocolVer; 620 622 621 pClient-> SetProtocolVer(data.uProtocol);623 pClient->uProtocolVerDeprecated = data.uProtocol; 622 624 623 625 /* Return the highest protocol version we're supporting. */ … … 626 628 paParms[idxParm - 1].u.uint32 = data.uProtocol; 627 629 628 LogFlowFunc(("Client %RU32 is now using protocol v%RU32\n", pClient->GetClientID(), pClient->GetProtocolVer())); 630 LogFlowFunc(("Client %RU32 is now using protocol v%RU32\n", 631 pClient->GetClientID(), pClient->uProtocolVerDeprecated)); 629 632 630 633 DO_HOST_CALLBACK(); … … 668 671 data.hdr.uMagic = CB_MAGIC_DND_HG_REQ_DATA; 669 672 670 switch (pClient-> GetProtocolVer())673 switch (pClient->uProtocolVerDeprecated) 671 674 { 672 675 case 3: … … 724 727 data.hdr.uMagic = CB_MAGIC_DND_GH_ACK_PENDING; 725 728 726 switch (pClient-> GetProtocolVer())729 switch (pClient->uProtocolVerDeprecated) 727 730 { 728 731 case 3: … … 798 801 LogFlowFunc(("GUEST_DND_GH_SND_DATA\n")); 799 802 800 switch (pClient-> GetProtocolVer())803 switch (pClient->uProtocolVerDeprecated) 801 804 { 802 805 case 3: … … 889 892 LogFlowFunc(("GUEST_DND_GH_SND_FILE_DATA\n")); 890 893 891 switch (pClient-> GetProtocolVer())894 switch (pClient->uProtocolVerDeprecated) 892 895 { 893 896 /* Protocol v3 adds (optional) checksums. */ … … 1097 1100 int rc2 = pClient->SetDeferredMsgInfo(HOST_DND_CANCEL, 1098 1101 /* Protocol v3+ also contains the context ID. */ 1099 pClient-> GetProtocolVer()>= 3 ? 1 : 0);1102 pClient->uProtocolVerDeprecated >= 3 ? 1 : 0); 1100 1103 pClient->CompleteDeferred(rc2); 1101 1104
Note:
See TracChangeset
for help on using the changeset viewer.