Changeset 70350 in vbox for trunk/src/VBox/Additions/common/VBoxGuest/win
- Timestamp:
- Dec 26, 2017 5:24:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/win/VBoxGuestInst.cpp
r70342 r70350 54 54 } 55 55 56 uint32_t const uMajorNtVer = GetVersion() & 0xff; 57 const char *pszSlashName = uMajorNtVer < 4 ? "\\VBoxGuestNT3.sys" : "\\VBoxGuest.sys"; 56 const char *pszSlashName = "\\VBoxGuest.sys"; 58 57 char szDriver[MAX_PATH * 2]; 59 58 GetCurrentDirectory(MAX_PATH, szDriver); … … 63 62 GetSystemDirectory(szDriver, sizeof(szDriver)); 64 63 strcat(strcat(szDriver, "\\drivers"), pszSlashName); 65 66 /* Try FAT name abbreviation. */67 if ( GetFileAttributesA(szDriver) == INVALID_FILE_ATTRIBUTES68 && 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 }80 64 } 81 65
Note:
See TracChangeset
for help on using the changeset viewer.