wined3d: Fixed sizeof (Coverity).

This commit is contained in:
Marcus Meissner 2011-10-16 23:11:48 +02:00 committed by Alexandre Julliard
parent 8648c13140
commit f90d402610
1 changed files with 1 additions and 1 deletions

View File

@ -987,7 +987,7 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, WINED3DSURFTY
const struct wined3d_gl_info *gl_info = &device->adapter->gl_info;
swapchain->context = HeapAlloc(GetProcessHeap(), 0, sizeof(swapchain->context));
swapchain->context = HeapAlloc(GetProcessHeap(), 0, sizeof(*swapchain->context));
if (!swapchain->context)
{
ERR("Failed to create the context array.\n");