VirtualBox

Ignore:
Timestamp:
Dec 26, 2017 5:24:43 PM (7 years ago)
Author:
vboxsync
Message:

VBoxGuestNt3.sys: Use the regular driver for NT3 too.

File:
1 edited

Legend:

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

    r70342 r70350  
    5454    }
    5555
    56     uint32_t const uMajorNtVer  = GetVersion() & 0xff;
    57     const char    *pszSlashName = uMajorNtVer < 4 ? "\\VBoxGuestNT3.sys" : "\\VBoxGuest.sys";
     56    const char    *pszSlashName = "\\VBoxGuest.sys";
    5857    char szDriver[MAX_PATH * 2];
    5958    GetCurrentDirectory(MAX_PATH, szDriver);
     
    6362        GetSystemDirectory(szDriver, sizeof(szDriver));
    6463        strcat(strcat(szDriver, "\\drivers"), pszSlashName);
    65 
    66         /* Try FAT name abbreviation. */
    67         if (   GetFileAttributesA(szDriver) == INVALID_FILE_ATTRIBUTES
    68             && uMajorNtVer < 4)
    69         {
    70             pszSlashName = "\\VBoxGst3.sys";
    71             GetCurrentDirectory(MAX_PATH, szDriver);
    72             strcat(szDriver, pszSlashName);
    73             if (GetFileAttributesA(szDriver) == INVALID_FILE_ATTRIBUTES)
    74             {
    75                 GetSystemDirectory(szDriver, sizeof(szDriver));
    76                 strcat(strcat(szDriver, "\\drivers"), pszSlashName);
    77 
    78             }
    79         }
    8064    }
    8165
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