- Timestamp:
- Jun 19, 2023 2:29:26 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp
r100204 r100209 2070 2070 LogFlowFunc(("uFmtVBox=%#x, idxFmtX11=%u, pvSrc=%p, cbSrc=%u\n", pReq->Read.uFmtVBox, pReq->Read.idxFmtX11, pvSrc, cbSrc)); 2071 2071 2072 /* Sanity. */ 2073 AssertReturnVoid(pReq->Read.uFmtVBox != VBOX_SHCL_FMT_NONE); 2074 AssertReturnVoid(pReq->Read.idxFmtX11 < SHCL_MAX_X11_FORMATS); 2075 2076 AssertPtrReturnVoid(pReq->pCtx); 2077 2072 2078 LogRel2(("Shared Clipboard: Converting X11 format '%s' to VBox format %#x (%RU32 bytes max)\n", 2073 2079 g_aFormats[pReq->Read.idxFmtX11].pcszAtom, pReq->Read.uFmtVBox, pReq->Read.cbMax)); 2074 2075 AssertPtr(pReq->pCtx);2076 Assert(pReq->Read.uFmtVBox != VBOX_SHCL_FMT_NONE); /* Sanity. */2077 2080 2078 2081 int rc = VINF_SUCCESS; … … 2359 2362 char *pszFmts = ShClFormatsToStrA(pReq->Read.uFmtVBox); 2360 2363 AssertPtrReturnVoid(pszFmts); 2361 AssertReturnVoid(pReq->Read.idxFmtX11 < =SHCL_MAX_X11_FORMATS); /* Paranoia, should be checked already by the caller. */2364 AssertReturnVoid(pReq->Read.idxFmtX11 < SHCL_MAX_X11_FORMATS); /* Paranoia, should be checked already by the caller. */ 2362 2365 LogRel2(("Shared Clipboard: Converting X11 format '%s' -> VBox format(s) '%s'\n", g_aFormats[pReq->Read.idxFmtX11].pcszAtom, pszFmts)); 2363 2366 RTStrFree(pszFmts); … … 2406 2409 { 2407 2410 AssertPtrReturn(pszWhere, VERR_INVALID_POINTER); 2408 AssertReturn(idxFmt < =SHCL_MAX_X11_FORMATS, VERR_INVALID_PARAMETER);2411 AssertReturn(idxFmt < SHCL_MAX_X11_FORMATS, VERR_INVALID_PARAMETER); 2409 2412 AssertReturn(clipIsSupportedSelectionType(pCtx, clipGetAtom(pCtx, pszWhere)), VERR_INVALID_PARAMETER); 2410 2413 AssertPtrReturn(pReq, VERR_INVALID_POINTER);
Note:
See TracChangeset
for help on using the changeset viewer.