mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
winemac.drv: Also return the number of pixel formats if the caller didn't supply a PIXELFORMATDESCRIPTOR.
This commit is contained in:
parent
dcaeb6b4fd
commit
05a68dbc55
@ -3281,7 +3281,7 @@ int macdrv_wglDescribePixelFormat(HDC hdc, int fmt, UINT size, PIXELFORMATDESCRI
|
||||
|
||||
TRACE("hdc %p fmt %d size %u descr %p\n", hdc, fmt, size, descr);
|
||||
|
||||
if (fmt <= 0 || fmt > ret) return ret;
|
||||
if (fmt <= 0 || fmt > ret || !descr) return ret;
|
||||
if (size < sizeof(*descr)) return 0;
|
||||
|
||||
pf = &pixel_formats[fmt - 1];
|
||||
|
Loading…
Reference in New Issue
Block a user