- Timestamp:
- Feb 5, 2025 6:05:14 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167379
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/installation/VBoxWinDrvInst.cpp
r108081 r108085 1986 1986 * version which is being reported via API calls. So compare the both OS versions 1987 1987 * and prefer the one being reported via the registry if they don't match. 1988 * Ignore the build number (too specific). 1988 1989 * 1989 1990 * The OS version to use still can be later tweaked using VBoxWinDrvInstSetOsVersion(). */ 1990 if ( (pCtx->uOsVer != uRegOsVer) 1991 && RTSYSTEM_NT_VERSION_GET_MAJOR(uRegOsVer) > 4 /* XP+ */) 1991 if ( ( RTSYSTEM_NT_VERSION_GET_MAJOR(pCtx->uOsVer) != RTSYSTEM_NT_VERSION_GET_MAJOR(uRegOsVer) 1992 || RTSYSTEM_NT_VERSION_GET_MINOR(pCtx->uOsVer) != RTSYSTEM_NT_VERSION_GET_MINOR(uRegOsVer)) 1993 && RTSYSTEM_NT_VERSION_GET_MAJOR(uRegOsVer) > 4 /* Only XP+ */) 1992 1994 { 1993 vboxWinDrvInstLog Warn(pCtx, "Detected Windows version (%u.%u) does not match the one stored in the registry (%u.%u)",1995 vboxWinDrvInstLogInfo(pCtx, "Detected Windows version (%u.%u) does not match the one stored in the registry (%u.%u)", 1994 1996 RTSYSTEM_NT_VERSION_GET_MAJOR(pCtx->uOsVer), 1995 1997 RTSYSTEM_NT_VERSION_GET_MINOR(pCtx->uOsVer), 1996 1998 RTSYSTEM_NT_VERSION_GET_MAJOR(uRegOsVer), 1997 1999 RTSYSTEM_NT_VERSION_GET_MINOR(uRegOsVer)); 2000 vboxWinDrvInstLogInfo(pCtx, "This might be due a compatibility layer or MSI installer engine shimming the Windows version"); 1998 2001 1999 2002 /* Override the OS version from the API with the one found in the registry. */
Note:
See TracChangeset
for help on using the changeset viewer.