Commit 05a68dbc authored by Charles Davis's avatar Charles Davis Committed by Alexandre Julliard

winemac.drv: Also return the number of pixel formats if the caller didn't supply…

winemac.drv: Also return the number of pixel formats if the caller didn't supply a PIXELFORMATDESCRIPTOR.
parent dcaeb6b4
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment