Module: wine Branch: master Commit: f99e1d80e2357f4e134cb037bad84d5de457523e URL: http://source.winehq.org/git/wine.git/?a=commit;h=f99e1d80e2357f4e134cb037ba...
Author: Dan Kegel dank@kegel.com Date: Mon May 31 05:09:55 2010 +0000
wined3d: Fix size of buffer in swapchain_create_context_for_thread().
---
dlls/wined3d/swapchain.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index b0d591a..69d3d0d 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -969,7 +969,7 @@ struct wined3d_context *swapchain_create_context_for_thread(IWineD3DSwapChain *i } context_release(ctx);
- newArray = HeapAlloc(GetProcessHeap(), 0, sizeof(*newArray) * This->num_contexts + 1); + newArray = HeapAlloc(GetProcessHeap(), 0, sizeof(*newArray) * (This->num_contexts + 1)); if(!newArray) { ERR("Out of memory when trying to allocate a new context array\n"); context_destroy(This->device, ctx);