On 30 June 2014 17:42, Patrick Rudolph siro@das-labor.org wrote:
Subject: ddraw: add dsurface dimension checks
This subject line has some room for improvement.
- if ((desc->dwWidth > 0xffff) || (desc->dwHeight > 0xffff))
- {
HeapFree(GetProcessHeap(), 0, texture);
return DDERR_INVALIDPARAMS;
- }
Please just merge this with the other surface dimension check a couple of lines earlier.