VirtualBox

Changeset 61989 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
Jul 2, 2016 1:31:31 PM (9 years ago)
Author:
vboxsync
Message:

ldrNative-win.cpp: Convert forward slashes to backslashes in the DLL path, just to be on the safe side.

File:
1 edited

Legend:

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

    r59396 r61989  
    9494    if (RT_SUCCESS(rc))
    9595    {
     96        /* Convert slashes just to be on the safe side. */
     97        for (size_t off = 0;; off++)
     98        {
     99            RTUTF16 wc = pwszNative[off];
     100            if (wc == '/')
     101                pwszNative[off] = '\\';
     102            else if (!wc)
     103                break;
     104        }
     105
    96106        /*
    97107         * Attempt load.
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