VirtualBox

Changeset 27560 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Mar 21, 2010 1:54:41 PM (15 years ago)
Author:
vboxsync
Message:

Fix #4631 (Crash when taking a snapshot of a VM running with VBoxHeadless on OSE)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/DisplayImpl.cpp

    r26443 r27560  
    433433#endif /* !VBOX_WITH_OLD_VBVA_LOCK */
    434434
    435         if (RT_SUCCESS(rc))
    436         {
     435        /*
     436         * It is possible that success is returned but everything is 0 or NULL.
     437         * (no display attached if a VM is running with VBoxHeadless on OSE for example)
     438         */
     439        if (RT_SUCCESS(rc) && pu8Data)
     440        {
     441            Assert(cx && cy);
     442
    437443            /* Prepare a small thumbnail and a PNG screenshot. */
    438444            displayMakeThumbnail(pu8Data, cx, cy, &pu8Thumbnail, &cbThumbnail, &cxThumbnail, &cyThumbnail);
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