Ticket #5615: VirtualBox-3.1.0-libpng-1.4.patch
| File VirtualBox-3.1.0-libpng-1.4.patch, 1.4 KB (added by , 15 years ago) |
|---|
-
VirtualBox-3.1.0_OSE/src/VBox/Main/DisplayImpl.cpp
old new static int displayMakePNG(uint8_t *pu8Da 308 308 { 309 309 png_infop info_ptr = NULL; 310 310 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 */); 314 314 if (png_ptr) 315 315 { 316 316 info_ptr = png_create_info_struct(png_ptr); … … static int displayMakePNG(uint8_t *pu8Da 372 372 rc = VERR_NO_MEMORY; 373 373 } 374 374 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); 376 376 } 377 377 else 378 378 {

