wined3d: Fix size of buffer in swapchain_create_context_for_thread().

This commit is contained in:
Dan Kegel 2010-05-31 05:09:55 +00:00 committed by Alexandre Julliard
parent 84179f4e1d
commit f99e1d80e2
1 changed files with 1 additions and 1 deletions

View File

@ -969,7 +969,7 @@ struct wined3d_context *swapchain_create_context_for_thread(IWineD3DSwapChain *i
} }
context_release(ctx); 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) { if(!newArray) {
ERR("Out of memory when trying to allocate a new context array\n"); ERR("Out of memory when trying to allocate a new context array\n");
context_destroy(This->device, ctx); context_destroy(This->device, ctx);