VirtualBox

Changeset 78407 in vbox for trunk/src


Ignore:
Timestamp:
May 6, 2019 9:24:35 PM (6 years ago)
Author:
vboxsync
Message:

HostServices/SharedOpenGL: Avoid assertion trying to allocate 0 bytes in a debug build (seen with OpenGL extension viewer on a Windows guest)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_simpleget.py

    r78375 r78407  
    4949    """ % (types[index], types[index]))
    5050    print('\t(void) params;')
     51    print('\tif (tablesize == 0)')
     52    print('\t{')
     53    print('\t\tcrServerReturnValue(NULL, 0);')
     54    print('\t\treturn;')
     55    print('\t}')
    5156    print('\tget_values = (%s *) crAlloc( tablesize );' % types[index])
    52     print('\tif (tablesize>0)')
    5357    print('\tcr_server.head_spu->dispatch_table.%s( pname, get_values );' % func_name)
    5458    print("""
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