Michael Stefaniuc : mscms: Don' t produce unreachable code during conditional compilation.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 25 07:44:11 CDT 2007


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Jul 24 22:29:05 2007 +0200

mscms: Don't produce unreachable code during conditional compilation.

---

 dlls/mscms/profile.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/mscms/profile.c b/dlls/mscms/profile.c
index 8c9d73c..4ecb361 100644
--- a/dlls/mscms/profile.c
+++ b/dlls/mscms/profile.c
@@ -305,7 +305,6 @@ BOOL WINAPI GetColorProfileFromHandle( HPROFILE profile, PBYTE buffer, PDWORD si
  */
 BOOL WINAPI GetColorProfileHeader( HPROFILE profile, PPROFILEHEADER header )
 {
-    BOOL ret = FALSE;
 #ifdef HAVE_LCMS
     icProfile *iccprofile = MSCMS_hprofile2iccprofile( profile );
 
@@ -316,8 +315,9 @@ BOOL WINAPI GetColorProfileHeader( HPROFILE profile, PPROFILEHEADER header )
     MSCMS_get_profile_header( iccprofile, header );
     return TRUE;
 
+#else
+    return FALSE;
 #endif /* HAVE_LCMS */
-    return ret;
 }
 
 /******************************************************************************
@@ -1065,7 +1065,6 @@ BOOL WINAPI SetColorProfileElement( HPROFILE profile, TAGTYPE type, DWORD offset
  */
 BOOL WINAPI SetColorProfileHeader( HPROFILE profile, PPROFILEHEADER header )
 {
-    BOOL ret = FALSE;
 #ifdef HAVE_LCMS
     icProfile *iccprofile = MSCMS_hprofile2iccprofile( profile );
     DWORD access = MSCMS_hprofile2access( profile );
@@ -1078,8 +1077,9 @@ BOOL WINAPI SetColorProfileHeader( HPROFILE profile, PPROFILEHEADER header )
     MSCMS_set_profile_header( iccprofile, header );
     return TRUE;
 
+#else
+    return FALSE;
 #endif /* HAVE_LCMS */
-    return ret;
 }
 
 /******************************************************************************




More information about the wine-cvs mailing list