Maarten Lankhorst : winex11.drv: Fix a compiler warning.

Alexandre Julliard julliard at winehq.org
Mon May 5 14:28:31 CDT 2008


Module: wine
Branch: master
Commit: 2d50b5cef5e0c9296cc9855477615b69ed1d337c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2d50b5cef5e0c9296cc9855477615b69ed1d337c

Author: Maarten Lankhorst <crumb at virgo23.smo.corp.google.com>
Date:   Mon May  5 10:02:36 2008 -0700

winex11.drv: Fix a compiler warning.

---

 dlls/winex11.drv/graphics.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/graphics.c b/dlls/winex11.drv/graphics.c
index 197ee21..6b6055f 100644
--- a/dlls/winex11.drv/graphics.c
+++ b/dlls/winex11.drv/graphics.c
@@ -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 );
     }




More information about the wine-cvs mailing list