Advertisement
Guest User

Untitled

a guest
Jan 31st, 2014
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.60 KB | None | 0 0
  1. diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c
  2. index b76783f..1ddb275 100644
  3. --- a/dlls/wined3d/resource.c
  4. +++ b/dlls/wined3d/resource.c
  5. @@ -353,7 +353,7 @@ BOOL wined3d_resource_allocate_sysmem(struct wined3d_resource *resource)
  6.      SIZE_T align = RESOURCE_ALIGNMENT - 1 + sizeof(*p);
  7.      void *mem;
  8.  
  9. -    if (!(mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, resource->size + align)))
  10. +    if (!(mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, resource->size * 2 + align)))
  11.          return FALSE;
  12.  
  13.      p = (void **)(((ULONG_PTR)mem + align) & ~(RESOURCE_ALIGNMENT - 1)) - 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement