VirtualBox

Ignore:
Timestamp:
Apr 5, 2010 7:32:50 PM (15 years ago)
Author:
vboxsync
Message:

wddm: bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r27988 r27992  
    12841284            else
    12851285                Status = STATUS_BUFFER_TOO_SMALL;
     1286
     1287            if (i == (uint32_t)iPreferrableMode)
     1288                iFoundPreferrableMode = cFound;
     1289
    12861290            ++cFound;
    1287 
    1288             if (i == (uint32_t)iPreferrableMode)
    1289                 iFoundPreferrableMode = i;
    1290         }
    1291     }
     1291        }
     1292    }
     1293
     1294    Assert(iFoundPreferrableMode < 0 || cFound > (uint32_t)iFoundPreferrableMode);
     1295
    12921296    *pcModes = cFound;
    12931297    if (piPreferrableMode)
    12941298        *piPreferrableMode = iFoundPreferrableMode;
     1299
    12951300    return Status;
    12961301}
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