Commit 2d50b5ce authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

winex11.drv: Fix a compiler warning.

parent 30221f7b
......@@ -1491,9 +1491,9 @@ static unsigned char *get_icm_profile( unsigned long *size )
XGetWindowProperty( gdi_display, DefaultRootWindow(gdi_display),
x11drv_atom(_ICC_PROFILE), 0, ~0UL, False, AnyPropertyType,
&type, &format, &count, &remaining, &profile );
*size = get_property_size( format, count );
if (format && count)
{
*size = get_property_size( format, count );
if ((ret = HeapAlloc( GetProcessHeap(), 0, *size ))) memcpy( ret, profile, *size );
XFree( profile );
}
......
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