VirtualBox

Changeset 62790 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 1, 2016 7:05:40 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109377
Message:

HostServices: warnings

File:
1 edited

Legend:

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

    r62489 r62790  
    529529     * If guest uses UTF-16 then convert it to UTF-8.
    530530     */
    531     uint32_t    cbGuestPath;
    532     const char *pchGuestPath;
     531    uint32_t    cbGuestPath = 0;        /* Shut up MSC */
     532    const char *pchGuestPath = NULL;    /* Ditto. */
    533533    char *pchGuestPathAllocated = NULL; /* Converted from UTF-16. */
    534534    if (BIT_FLAG(pClient->fu32Flags, SHFL_CF_UTF8))
     
    579579                        pchGuestPathAllocated[cbPathAsUtf8] = '\0';
    580580
    581                         cbGuestPath = cbPathAsUtf8;
     581                        cbGuestPath = (uint32_t)cbPathAsUtf8; Assert(cbGuestPath == cbPathAsUtf8);
    582582                        pchGuestPath = pchGuestPathAllocated;
    583583                    }
Note: See TracChangeset for help on using the changeset viewer.

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