Changeset 103767 in vbox
- Timestamp:
- Mar 11, 2024 2:23:25 PM (9 months ago)
- Location:
- trunk/src/VBox/Additions/linux/sharedfolders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r102990 r103767 2536 2536 size_t iPage = cPages; 2537 2537 while (iPage-- > 0) 2538 pReq->PgLst.aPages[iPage] = page_to_phys(papPages[iPage]); 2538 { 2539 RTGCPHYS64 * paDstPages = pReq->PgLst.aPages; 2540 paDstPages[iPage] = page_to_phys(papPages[iPage]); 2541 } 2542 2539 2543 pReq->PgLst.offFirstPage = (uint16_t)offPage0; 2540 2544 AssertStmt(cbChunk <= cbToRead, cbChunk = cbToRead); … … 2750 2754 size_t iPage = cPages; 2751 2755 while (iPage-- > 0) 2752 pReq->PgLst.aPages[iPage] = page_to_phys(papPages[iPage]); 2756 { 2757 RTGCPHYS64 * paDstPages = pReq->PgLst.aPages; 2758 paDstPages[iPage] = page_to_phys(papPages[iPage]); 2759 } 2753 2760 pReq->PgLst.offFirstPage = (uint16_t)offPage0; 2754 2761 AssertStmt(cbChunk <= cbToWrite, cbChunk = cbToWrite); -
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r103067 r103767 191 191 pString = (PSHFLSTRING)kmalloc(SHFLSTRING_HEADER_SIZE + cchNls + 1, GFP_KERNEL); 192 192 if (pString) { 193 char *pchDst = pString->String.ach; 193 194 pString->u16Length = (uint16_t)cchNls; 194 195 pString->u16Size = (uint16_t)(cchNls + 1); 195 RT_BCOPY_UNFORTIFIED(p String->String.ach, pszNls, cchNls);196 p String->String.ach[cchNls] = '\0';196 RT_BCOPY_UNFORTIFIED(pchDst, pszNls, cchNls); 197 pchDst[cchNls] = '\0'; 197 198 rc = 0; 198 199 } else {
Note:
See TracChangeset
for help on using the changeset viewer.