VirtualBox

Changeset 50862 in vbox


Ignore:
Timestamp:
Mar 25, 2014 12:50:52 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92954
Message:

wddm/win8: fix divide by zero error for secondary monitors

File:
1 edited

Legend:

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

    r49458 r50862  
    494494#ifdef VBOX_XPDM_MINIPORT
    495495    return (pExt->CurrentMode == 0);
    496 #elif defined(VBOX_WDDM_WIN8)
    497     return FALSE;
    498 #else /* VBOX_WDDM_MINIPORT && !VBOX_WDDM_MINIPORT */
    499     return (!VBoxCommonFromDeviceExt(pExt)->cDisplays
    500             || !pExt->aSources[iDisplay].pPrimaryAllocation);
     496#else
     497    VBOXWDDM_SOURCE *pSource = &pExt->aSources[iDisplay];
     498    return !pSource->AllocData.SurfDesc.width || !pSource->AllocData.SurfDesc.height;
    501499#endif
    502500}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette