Commit f99e1d80 authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

wined3d: Fix size of buffer in swapchain_create_context_for_thread().

parent 84179f4e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment