From 772e0e3b4a84b4aa7b3297f6c7e2368664bee39f Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 7 Nov 2023 21:25:29 +1100 Subject: [PATCH] [host] dxgi: fix d3d11 invalid memory allocation for backend struct --- host/platform/Windows/capture/DXGI/src/d3d11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/capture/DXGI/src/d3d11.c b/host/platform/Windows/capture/DXGI/src/d3d11.c index 3cd6e7d0..16ba938e 100644 --- a/host/platform/Windows/capture/DXGI/src/d3d11.c +++ b/host/platform/Windows/capture/DXGI/src/d3d11.c @@ -50,7 +50,7 @@ static bool d3d11_create(unsigned textures) DEBUG_ASSERT(!this); this = calloc(1, sizeof(struct D3D11Backend) + - sizeof(*this->texture) + textures); + sizeof(*this->texture) * textures); if (!this) {