VirtualBox

Changeset 99087 in vbox


Ignore:
Timestamp:
Mar 21, 2023 1:03:16 PM (21 months ago)
Author:
vboxsync
Message:

Guest Control: Added directory listing support via IDirectory::list(). Added (randomized) testcase support for it [build fix]. bugref:9783

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r99085 r99087  
    12281228            int rc2;
    12291229            if (RT_SUCCESS(rc))
    1230                 rc2 = VbglR3GuestCtrlDirCbReadEx(pHostCtx, rc, pDirEntryEx, cbDirEntryEx, pszUser, pszGroups);
     1230                rc2 = VbglR3GuestCtrlDirCbReadEx(pHostCtx, rc, pDirEntryEx, (uint32_t)cbDirEntryEx, pszUser, pszGroups);
    12311231            else
    12321232                rc2 = VbglR3GuestCtrlDirCbRead(pHostCtx, rc, NULL /* pEntry */, 0 /* cbSize */);
     
    14141414
    14151415                        GSTCTLDIRENTRYLISTHDR Hdr;
    1416                         Hdr.cbDirEntryEx = cbDirEntryEx;
    1417                         Hdr.cbUser       = cbUser;
    1418                         Hdr.cbGroups     = cbGroups;
     1416                        Hdr.cbDirEntryEx = (uint32_t)cbDirEntryEx;
     1417                        Hdr.cbUser       = (uint32_t)cbUser;
     1418                        Hdr.cbGroups     = (uint32_t)cbGroups;
    14191419
    14201420                        memcpy((uint8_t *)pvBuf + cbBufUsed, &Hdr, cbHdr);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette