[PATCH vkd3d 3/3] include: Print failed allocation size.

Henri Verbeet hverbeet at gmail.com
Mon Aug 16 11:05:02 CDT 2021


On Fri, 13 Aug 2021 at 16:15, Matteo Bruni <mbruni at codeweavers.com> wrote:
> @@ -37,7 +37,7 @@ static inline void *vkd3d_malloc(size_t size)
>  static inline void *vkd3d_realloc(void *ptr, size_t size)
>  {
>      if (!(ptr = realloc(ptr, size)))
> -        ERR("Out of memory.\n");
> +        ERR("Out of memory, size %u.\n", size);
>      return ptr;
>  }
>
The change seems fine in principle, but using %u would introduce
compiler warnings for 64-bit builds.



More information about the wine-devel mailing list