VirtualBox

Changeset 49043 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Oct 11, 2013 12:58:02 AM (11 years ago)
Author:
vboxsync
Message:

symlink-win.cpp: Fixed bug in RTSymlinkCreate on windows, seems windows doesn't like unix slashes in symlink target paths.

File:
1 edited

Legend:

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

    r47596 r49043  
    158158        if (RT_SUCCESS(rc))
    159159        {
     160            /* The link target path must use backslashes to work reliably. */
     161            RTUTF16  wc;
     162            PRTUTF16 pwsz = pwszNativeTarget;
     163            while ((wc = *pwsz) != '\0')
     164            {
     165                if (wc == '/')
     166                    *pwsz = '\\';
     167                pwsz++;
     168            }
     169
    160170            /*
    161171             * Massage the target path, determin the link type.
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