VirtualBox

Ticket #5615: VirtualBox-3.1.0-libpng-1.4.patch

File VirtualBox-3.1.0-libpng-1.4.patch, 1.4 KB (added by Bernhard Rosenkraenzer, 15 years ago)

Fix

  • VirtualBox-3.1.0_OSE/src/VBox/Main/DisplayImpl.cpp

    old new static int displayMakePNG(uint8_t *pu8Da  
    308308        {
    309309            png_infop info_ptr = NULL;
    310310            png_structp png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING,
    311                                                           png_voidp_NULL, /* error/warning context pointer */
    312                                                           png_error_ptr_NULL /* error function */,
    313                                                           png_error_ptr_NULL /* warning function */);
     311                                                          0, /* error/warning context pointer */
     312                                                          0 /* error function */,
     313                                                          0 /* warning function */);
    314314            if (png_ptr)
    315315            {
    316316                info_ptr = png_create_info_struct(png_ptr);
    static int displayMakePNG(uint8_t *pu8Da  
    372372                    rc = VERR_NO_MEMORY;
    373373                }
    374374
    375                 png_destroy_write_struct(&png_ptr, info_ptr? &info_ptr: png_infopp_NULL);
     375                png_destroy_write_struct(&png_ptr, info_ptr? &info_ptr: 0);
    376376            }
    377377            else
    378378            {

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy