Changeset 80968 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Sep 24, 2019 11:40:42 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r80918 r80968 172 172 VBOX_SHCL_GUEST_FN_MSG_GET, 3); 173 173 174 Msg.u Context.SetUInt32(VBOX_SHCL_HOST_MSG_FORMATS_REPORT);175 Msg.u Formats.SetUInt32(0);176 Msg. fFlags.SetUInt32(0);177 } 178 179 int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg)); 180 if (RT_SUCCESS(rc)) 181 { 182 rc = Msg.u Context.GetUInt32(&pCtx->uContextID);183 if (RT_SUCCESS(rc)) 184 rc = Msg.u Formats.GetUInt32(&pFormats->uFormats);185 if (RT_SUCCESS(rc)) 186 rc = Msg. fFlags.GetUInt32(&pFormats->fFlags);174 Msg.u.v1.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_FORMATS_REPORT); 175 Msg.u.v1.uFormats.SetUInt32(0); 176 Msg.u.v1.fFlags.SetUInt32(0); 177 } 178 179 int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg)); 180 if (RT_SUCCESS(rc)) 181 { 182 rc = Msg.u.v1.uContext.GetUInt32(&pCtx->uContextID); 183 if (RT_SUCCESS(rc)) 184 rc = Msg.u.v1.uFormats.GetUInt32(&pFormats->uFormats); 185 if (RT_SUCCESS(rc)) 186 rc = Msg.u.v1.fFlags.GetUInt32(&pFormats->fFlags); 187 187 } 188 188 … … 1290 1290 uTransferID, 1291 1291 enmDir == SHCLTRANSFERDIR_READ ? "reading from" : "writing to", 1292 enmSource == SHCLSOURCE_LOCAL ? "local" : "remote"));1292 enmSource == SHCLSOURCE_LOCAL ? "local" : "remote")); 1293 1293 } 1294 1294 else … … 1368 1368 const SHCLTRANSFERID uTransferID = VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID); 1369 1369 1370 LogFlowFunc(("[Transfer %RU16] %s\n", uTransferID, VBoxShClTransferStatusToStr(transferReport.uStatus))); 1370 LogFlowFunc(("[Transfer %RU16] enmDir=%RU32, status=%s\n", 1371 uTransferID, enmDir, VBoxShClTransferStatusToStr(transferReport.uStatus))); 1371 1372 1372 1373 switch (transferReport.uStatus) … … 1890 1891 VBoxShClFormatsMsg Msg; 1891 1892 1893 int rc; 1894 1892 1895 if (pCtx->uProtocolVer == 0) 1893 1896 { 1894 1897 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, VBOX_SHCL_GUEST_FN_FORMATS_REPORT, 1); 1895 VbglHGCMParmUInt32Set(&Msg.uFormats, pFormats->uFormats); 1898 Msg.u.v0.uFormats.SetUInt32(pFormats->uFormats); 1899 1900 rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg.hdr) + sizeof(Msg.u.v0)); 1896 1901 } 1897 1902 else … … 1899 1904 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, VBOX_SHCL_GUEST_FN_FORMATS_REPORT, 3); 1900 1905 1901 Msg.u Context.SetUInt32(pCtx->uContextID);1902 Msg.u Formats.SetUInt32(pFormats->uFormats);1903 Msg. fFlags.SetUInt32(pFormats->fFlags);1904 } 1905 1906 int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));1906 Msg.u.v1.uContext.SetUInt32(pCtx->uContextID); 1907 Msg.u.v1.uFormats.SetUInt32(pFormats->uFormats); 1908 Msg.u.v1.fFlags.SetUInt32(pFormats->fFlags); 1909 1910 rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg.hdr) + sizeof(Msg.u.v1)); 1911 } 1907 1912 1908 1913 LogFlowFuncLeaveRC(rc); … … 1924 1929 1925 1930 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHCL_GUEST_FN_FORMATS_REPORT, 1); 1926 VbglHGCMParmUInt32Set(&Msg.u Formats, fFormats);1927 1928 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg ));1931 VbglHGCMParmUInt32Set(&Msg.u.v0.uFormats, fFormats); 1932 1933 return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg.hdr) + sizeof(Msg.u.v0)); 1929 1934 } 1930 1935 … … 1952 1957 VbglHGCMParmPtrSet(&Msg.u.v0.ptr, pv, cb); 1953 1958 1954 int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg ));1959 int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg.hdr) + sizeof(Msg.u.v0)); 1955 1960 1956 1961 LogFlowFuncLeaveRC(rc);
Note:
See TracChangeset
for help on using the changeset viewer.