VirtualBox

Changeset 43140 in vbox for trunk/src/VBox/GuestHost/OpenGL


Ignore:
Timestamp:
Aug 31, 2012 3:19:26 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80513
Message:

crOpenGL: fix misbehave on SPU init failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/spuload.c

    r35319 r43140  
    8888
    8989        the_spu = (SPU*)crAlloc( sizeof( *the_spu ) );
     90        /* ensure all fields are initially zero,
     91         * NOTE: what actually MUST be zero at this point is the_spu->superSPU, otherwise
     92         * crSPUUnloadChain in the failure branches below will misbehave */
     93        crMemset(the_spu, 0, sizeof (*the_spu));
    9094        the_spu->id = id;
    9195        the_spu->privatePtr = NULL;
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