mscms: avoid shadowing a parameter

Austin English austinenglish at gmail.com
Wed Mar 9 03:07:36 CST 2011


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/mscms/profile.c b/dlls/mscms/profile.c
index c9a5b42..8e108b4 100644
--- a/dlls/mscms/profile.c
+++ b/dlls/mscms/profile.c
@@ -1511,14 +1511,14 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
 
     if (cmsprofile)
     {
-        struct profile profile;
+        struct profile new_profile;
 
-        profile.file = handle;
-        profile.access = access;
-        profile.iccprofile = iccprofile;
-        profile.cmsprofile = cmsprofile;
+        new_profile.file = handle;
+        new_profile.access = access;
+        new_profile.iccprofile = iccprofile;
+        new_profile.cmsprofile = cmsprofile;
 
-        return create_profile( &profile );
+        return create_profile( &new_profile );
     }
 
 #endif /* HAVE_LCMS */


More information about the wine-patches mailing list