Module: wine Branch: master Commit: f90d40261057b5f4c9dc4190129df6275e6a0c79 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f90d40261057b5f4c9dc419012...
Author: Marcus Meissner marcus@jet.franken.de Date: Sun Oct 16 23:11:48 2011 +0200
wined3d: Fixed sizeof (Coverity).
---
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 126a991..1678dce 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -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");