VirtualBox

Changeset 95049 in vbox


Ignore:
Timestamp:
May 20, 2022 8:05:44 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151512
Message:

Additions/VBoxTray: Fixed regression introduced in r117497, which caused a debug assertion + crash on startup on NT4 guests; make sure that we never try to run anything else but VBOXDISPIF_MODE_XPDM_NT4 on NT4 guests. Anything else will get us into serious trouble.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp

    r93299 r95049  
    671671DWORD VBoxDispIfInit(PVBOXDISPIF pDispIf)
    672672{
     673    /* Note: NT4 is handled implicitly by VBoxDispIfSwitchMode(). */
    673674    VBoxDispIfSwitchMode(pDispIf, VBOXDISPIF_MODE_XPDM, NULL);
    674675
     
    26012602        return NO_ERROR;
    26022603
     2604    /* Make sure that we never try to run anything else but VBOXDISPIF_MODE_XPDM_NT4 on NT4 guests.
     2605     * Anything else will get us into serious trouble. */
     2606    if (RTSystemGetNtVersion() < RTSYSTEM_MAKE_NT_VERSION(5, 0, 0))
     2607        enmMode = VBOXDISPIF_MODE_XPDM_NT4;
     2608
    26032609#ifdef VBOX_WITH_WDDM
    26042610    if (pIf->enmMode >= VBOXDISPIF_MODE_WDDM)
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