League of Legends shop in game fix

Austin English austinenglish at gmail.com
Thu Jan 29 15:47:51 CST 2015


On Thu, Jan 29, 2015 at 9:19 AM, Monster <manuiglesias96 at yahoo.es> wrote:

> @@ -220,7 +220,10 @@ BOOL wined3d_resource_allocate_sysmem(struct
> wined3d_resource *resource)
> SIZE_T align = RESOURCE_ALIGNMENT - 1 + sizeof(*p);
> void *mem;
> - if (!(mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
> resource->size + align)))
> + UINT size = resource->size;
> + if (resource->width <= 128 && resource->height <= 128)
> + size *= 2;
> + if (!(mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size +
> align)))
> return FALSE;
> p = (void **)(((ULONG_PTR)mem + align) & ~(RESOURCE_ALIGNMENT - 1)) - 1;
>
>
>
>
Please use your real name when sending patches.

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150129/d8c5b657/attachment.html>


More information about the wine-devel mailing list