VirtualBox

Ignore:
Timestamp:
Oct 11, 2019 8:19:05 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133901
Message:

Shared Clipboard/Transfers: Update.

File:
1 edited

Legend:

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

    r81212 r81220  
    885885        rc = HGCMSvcGetU32(&paParms[1], &pOpenParms->fList);
    886886        if (RT_SUCCESS(rc))
    887             rc = HGCMSvcGetU32(&paParms[2], &cbPath);
    888         if (RT_SUCCESS(rc))
    889         {
    890             rc = HGCMSvcGetStr(&paParms[3], &pOpenParms->pszPath, &pOpenParms->cbPath);
     887            rc = HGCMSvcGetU32(&paParms[2], &cbFilter);
     888        if (RT_SUCCESS(rc))
     889        {
     890            rc = HGCMSvcGetStr(&paParms[3], &pOpenParms->pszFilter, &pOpenParms->cbFilter);
     891            AssertReturn(cbFilter == pOpenParms->cbFilter, VERR_INVALID_PARAMETER);
     892        }
     893        if (RT_SUCCESS(rc))
     894            rc = HGCMSvcGetU32(&paParms[4], &cbPath);
     895        if (RT_SUCCESS(rc))
     896        {
     897            rc = HGCMSvcGetStr(&paParms[5], &pOpenParms->pszPath, &pOpenParms->cbPath);
    891898            AssertReturn(cbPath == pOpenParms->cbPath, VERR_INVALID_PARAMETER);
    892899        }
    893         if (RT_SUCCESS(rc))
    894             rc = HGCMSvcGetU32(&paParms[4], &cbFilter);
    895         if (RT_SUCCESS(rc))
    896         {
    897             rc = HGCMSvcGetStr(&paParms[5], &pOpenParms->pszFilter, &pOpenParms->cbFilter);
    898             AssertReturn(cbFilter == pOpenParms->cbFilter, VERR_INVALID_PARAMETER);
    899         }
    900 
    901         if (RT_SUCCESS(rc))
    902         {
    903             /** @todo Some more validation. */
    904         }
     900
     901        /** @todo Some more validation. */
    905902    }
    906903    else
     
    18621859            rc = shclSvcTransferGetError(cParms,paParms, &rcGuest);
    18631860            if (RT_SUCCESS(rc))
    1864                 LogRel(("Shared Clipboard: Transfer error: %Rrc\n", rcGuest));
     1861                LogRel(("Shared Clipboard: Transfer error from guest: %Rrc\n", rcGuest));
    18651862            break;
    18661863        }
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