[PATCH v2 0/6] MR228: d3dx: improvements to texture creation functions

Matteo Bruni (@Mystral) wine at gitlab.winehq.org
Tue Jun 14 17:50:12 CDT 2022


Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/texture.c:
>      stride = (width * get_bpp_from_format(img_info.Format) + 7) / 8;
>      frame_size = stride * height;
>  
> -    if (!(buffer = malloc(frame_size)))
> +    if(!(res_data = malloc(sizeof(**resource_data) + frame_size)))
Whitespace.

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/228#note_2069



More information about the wine-devel mailing list