[PATCH 3/5] wined3d: Properly allocate heap memory for volumes

Henri Verbeet hverbeet at gmail.com
Mon Aug 19 05:31:23 CDT 2013


On 19 August 2013 10:52, Stefan Dösinger <stefan at codeweavers.com> wrote:
> @@ -184,7 +184,16 @@ HRESULT CDECL wined3d_volume_map(struct wined3d_volume *volume,
>              volume, map_desc, box, flags);
>
>      if (!volume->resource.allocatedMemory)
> -        volume->resource.allocatedMemory = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, volume->resource.size);

Can this ever happen?



More information about the wine-devel mailing list