VirtualBox

Ignore:
Timestamp:
Dec 24, 2021 4:11:55 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149086
Message:

SharedFoldersSvc: Copy out the short name to help run DOS and WinOS2 programs on Windows hosts. Seems we never returned these, always setting cucShortName to zero. ticketref:19453

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r82968 r93075  
    17541754#endif
    17551755        vbfsCopyFsObjInfoFromIprt(&pSFDEntry->Info, &pDirEntry->Info);
    1756         pSFDEntry->cucShortName = 0;
    1757 
     1756
     1757        /* The shortname (only used by OS/2 atm): */
     1758        Assert(pDirEntry->cwcShortName < RT_ELEMENTS(pSFDEntry->uszShortName));
     1759        Assert(pDirEntry->wszShortName[pDirEntry->cwcShortName] == '\0');
     1760        pSFDEntry->cucShortName = pDirEntry->cwcShortName;
     1761        if (pDirEntry->cwcShortName)
     1762            memcpy(pSFDEntry->uszShortName, pDirEntry->wszShortName, sizeof(pSFDEntry->uszShortName));
     1763
     1764        /* The name: */
    17581765        if (fUtf8)
    17591766        {
     
    18101817        }
    18111818
     1819        /* Advance */
    18121820        pSFDEntry   = (PSHFLDIRINFO)((uintptr_t)pSFDEntry + cbNeeded);
    18131821        *pcbBuffer += cbNeeded;
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