VirtualBox

Changeset 82517 in vbox


Ignore:
Timestamp:
Dec 9, 2019 2:22:34 PM (5 years ago)
Author:
vboxsync
Message:

EFI/VBoxFsDxe: EFI needs backslashes as path separators.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxFsDxe/fsw_hfs.c

    r82400 r82517  
    13081308
    13091309        new_name.len = name_len + 1 + file_name->len;
    1310         new_name.size = 2 * new_name.len;
     1310        new_name.size = sizeof(fsw_u16) * new_name.len;
    13111311        fsw_alloc(new_name.size, &new_name.data);
    13121312        name_ptr = (fsw_u16*)new_name.data;
    13131313        /* Tack on path separator. */
     1314#ifdef HOST_POSIX
    13141315        name_ptr[0] = L'/';
     1316#else
     1317        name_ptr[0] = L'\\';
     1318#endif
    13151319        /* Copy over + swap the new path component. */
    13161320        for (i = 0; i < name_len; i++)
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