VirtualBox

Ignore:
Timestamp:
Sep 15, 2011 2:11:47 PM (13 years ago)
Author:
vboxsync
Message:

more Windows 8 fixes

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPUtils.cpp

    r36955 r38765  
    5050
    5151    if (s_WinVersion != UNKNOWN_WINVERSION)
    52     {
    5352        return s_WinVersion;
    54     }
    5553
    5654    checkedBuild = PsGetVersion(&major, &minor, &build, NULL);
     
    5957    if(major == 6)
    6058    {
    61         if (minor == 1)
    62         {
     59        if (minor == 2)
     60            s_WinVersion = WIN8;
     61        else if (minor == 1)
    6362            s_WinVersion = WIN7;
    64         }
    6563        else if (minor == 0)
    66         {
    6764            s_WinVersion = WINVISTA; /* Or Windows Server 2008. */
    68         }
    6965    }
    7066    else if (major == 5)
    71     {
    7267        s_WinVersion = (minor>=1) ? WINXP:WIN2K;
    73     }
    7468    else if (major == 4)
    75     {
    7669        s_WinVersion = WINNT4;
    77     }
    78     else
    79     {
     70    else
    8071        WARN(("NT4 required!"));
    81     }
    8272    return s_WinVersion;
    8373}
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPUtils.h

    r38739 r38765  
    8888    WINXP     = 3,
    8989    WINVISTA  = 4,
    90     WIN7      = 5
     90    WIN7      = 5,
     91    WIN8      = 6
    9192} vboxWinVersion_t;
    9293
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp

    r38405 r38765  
    606606    else
    607607    {
    608         Assert(ver == WIN7);
     608        Assert(ver == WIN7 || ver == WIN8);
    609609        pKeyPrefix = VBOXWDDM_REG_DISPLAYSETTINGSKEY_PREFIX_WIN7;
    610610        cbKeyPrefix = sizeof (VBOXWDDM_REG_DISPLAYSETTINGSKEY_PREFIX_WIN7);
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