mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
include: Print failed allocation size.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
fbcdc7a9d4
commit
54bef05070
@@ -37,7 +37,7 @@ static inline void *vkd3d_malloc(size_t size)
|
|||||||
static inline void *vkd3d_realloc(void *ptr, size_t size)
|
static inline void *vkd3d_realloc(void *ptr, size_t size)
|
||||||
{
|
{
|
||||||
if (!(ptr = realloc(ptr, size)))
|
if (!(ptr = realloc(ptr, size)))
|
||||||
ERR("Out of memory.\n");
|
ERR("Out of memory, size %zu.\n", size);
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user