VirtualBox

Ignore:
Timestamp:
Sep 25, 2018 3:42:33 PM (6 years ago)
Author:
vboxsync
Message:

IPRT: Implemented long filename support for windows (except for LoadLibrary). bugref:9248

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/dir-win.cpp

    r69111 r74460  
    5858         */
    5959        PRTUTF16 pwszString;
    60         rc = RTStrToUtf16(pszPath, &pwszString);
     60        rc = RTPathWinFromUtf8(&pwszString, pszPath, 0 /*fFlags*/);
    6161        AssertRC(rc);
    6262        if (RT_SUCCESS(rc))
     
    8989            }
    9090
    91             RTUtf16Free(pwszString);
     91            RTPathWinFree(pwszString);
    9292        }
    9393    }
     
    109109     */
    110110    PRTUTF16 pwszString;
    111     int rc = RTStrToUtf16(pszPath, &pwszString);
     111    int rc = RTPathWinFromUtf8(&pwszString, pszPath, 0 /*fFlags*/);
    112112    AssertRC(rc);
    113113    if (RT_SUCCESS(rc))
     
    121121            rc = RTErrConvertFromWin32(GetLastError());
    122122
    123         RTUtf16Free(pwszString);
     123        RTPathWinFree(pwszString);
    124124    }
    125125
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