Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c
- index 999dc5c..574e53f 100644
- --- a/dlls/wined3d/resource.c
- +++ b/dlls/wined3d/resource.c
- @@ -200,8 +200,12 @@ BOOL wined3d_resource_allocate_sysmem(struct wined3d_resource *resource)
- void **p;
- SIZE_T align = RESOURCE_ALIGNMENT - 1 + sizeof(*p);
- void *mem;
- + UINT size = resource->size;
- - if (!(mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, resource->size + align)))
- + size *= 4;
- +
- + if (!(mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size + align)))
- return FALSE;
- p = (void **)(((ULONG_PTR)mem + align) & ~(RESOURCE_ALIGNMENT - 1)) - 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement