winex11.drv: Fix a compiler warning.

This commit is contained in:
Maarten Lankhorst 2008-05-05 10:02:36 -07:00 committed by Alexandre Julliard
parent 30221f7bcd
commit 2d50b5cef5
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}