VirtualBox

Changeset 91606 in vbox


Ignore:
Timestamp:
Oct 6, 2021 8:17:52 PM (3 years ago)
Author:
vboxsync
Message:

VBoxGuest/nt: Corrected Windows 11 detection (it's still NT version 10.0, so we have to use the build number, which is rather annoying, confusing and inconsistent of MS).

File:
1 edited

Legend:

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

    r91549 r91606  
    341341    switch (ulMajorVer)
    342342    {
    343         case 11: /* Windows 11 Preview builds starting with 22000. */
    344             g_enmVGDrvNtVer = VGDRVNTVER_WIN11;
    345             break;
    346         case 10: /* Windows 10 Preview builds starting with 9926. */
     343        case 10:
     344            /* Windows 10 Preview builds starting with 9926. */
    347345            g_enmVGDrvNtVer = VGDRVNTVER_WIN10;
     346            /* Windows 11 Preview builds starting with 22000. */
     347            if (ulBuildNo >= 22000)
     348                g_enmVGDrvNtVer = VGDRVNTVER_WIN11;
    348349            break;
    349350        case 6: /* Windows Vista or Windows 7 (based on minor ver) */
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