VirtualBox

Changeset 28908 in vbox for trunk/src/VBox/Runtime/generic


Ignore:
Timestamp:
Apr 29, 2010 4:23:15 PM (15 years ago)
Author:
vboxsync
Message:

Runtime/pathhost: a cast is no replacement for RTStrDup()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/pathhost-generic.cpp

    r28903 r28908  
    185185    {
    186186        if (g_fPassthruUtf8 || !*pszPath)
    187             *ppszNativePath = (char *)pszPath;
     187            *ppszNativePath = RTStrDup(pszPath);
    188188        else
    189189            rc = rtStrConvert(pszPath, strlen(pszPath), "UTF-8",
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