Changeset 81220 in vbox for trunk/src/VBox/HostServices/SharedClipboard
- Timestamp:
- Oct 11, 2019 8:19:05 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 133901
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-transfers.cpp
r81212 r81220 885 885 rc = HGCMSvcGetU32(&paParms[1], &pOpenParms->fList); 886 886 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); 891 898 AssertReturn(cbPath == pOpenParms->cbPath, VERR_INVALID_PARAMETER); 892 899 } 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. */ 905 902 } 906 903 else … … 1862 1859 rc = shclSvcTransferGetError(cParms,paParms, &rcGuest); 1863 1860 if (RT_SUCCESS(rc)) 1864 LogRel(("Shared Clipboard: Transfer error : %Rrc\n", rcGuest));1861 LogRel(("Shared Clipboard: Transfer error from guest: %Rrc\n", rcGuest)); 1865 1862 break; 1866 1863 }
Note:
See TracChangeset
for help on using the changeset viewer.