VirtualBox

Changeset 70367 in vbox for trunk/src


Ignore:
Timestamp:
Dec 27, 2017 5:53:36 PM (7 years ago)
Author:
vboxsync
Message:

VBoxGuestInst.cpp: 'VBoxGuest.sys' isn't fat compatible. duh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/win/VBoxGuestInst.cpp

    r70350 r70367  
    6262        GetSystemDirectory(szDriver, sizeof(szDriver));
    6363        strcat(strcat(szDriver, "\\drivers"), pszSlashName);
     64
     65        /* Try FAT name abbreviation. */
     66        if (GetFileAttributesA(szDriver) == INVALID_FILE_ATTRIBUTES)
     67        {
     68            pszSlashName = "\\VBoxGst.sys";
     69            GetCurrentDirectory(MAX_PATH, szDriver);
     70            strcat(szDriver, pszSlashName);
     71            if (GetFileAttributesA(szDriver) == INVALID_FILE_ATTRIBUTES)
     72            {
     73                GetSystemDirectory(szDriver, sizeof(szDriver));
     74                strcat(strcat(szDriver, "\\drivers"), pszSlashName);
     75
     76            }
     77        }
    6478    }
    6579
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