[PATCH vkd3d 3/3] include: Print failed allocation size.
Matteo Bruni
mbruni at codeweavers.com
Fri Aug 13 09:14:40 CDT 2021
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
I find it can be helpful in the unlikely case that it triggers.
I guess it could be considered a bit of an information leak but
probably not a big deal?
include/private/vkd3d_memory.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/private/vkd3d_memory.h b/include/private/vkd3d_memory.h
index f6846d66..6f264e30 100644
--- a/include/private/vkd3d_memory.h
+++ b/include/private/vkd3d_memory.h
@@ -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;
}
--
2.26.3
More information about the wine-devel
mailing list