Commit daa0e301 authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

mscms: Fix uninitialized variable warning.

parent 015daccc
...@@ -1125,7 +1125,6 @@ BOOL WINAPI IsColorProfileTagPresent( HPROFILE handle, TAGTYPE type, PBOOL prese ...@@ -1125,7 +1125,6 @@ BOOL WINAPI IsColorProfileTagPresent( HPROFILE handle, TAGTYPE type, PBOOL prese
*/ */
BOOL WINAPI IsColorProfileValid( HPROFILE handle, PBOOL valid ) BOOL WINAPI IsColorProfileValid( HPROFILE handle, PBOOL valid )
{ {
BOOL ret;
struct profile *profile = grab_profile( handle ); struct profile *profile = grab_profile( handle );
TRACE( "( %p, %p )\n", handle, valid ); TRACE( "( %p, %p )\n", handle, valid );
...@@ -1137,9 +1136,9 @@ BOOL WINAPI IsColorProfileValid( HPROFILE handle, PBOOL valid ) ...@@ -1137,9 +1136,9 @@ BOOL WINAPI IsColorProfileValid( HPROFILE handle, PBOOL valid )
release_profile( profile ); release_profile( profile );
return FALSE; return FALSE;
} }
if (profile->data) ret = *valid = TRUE; *valid = !!profile->data;
release_profile( profile ); release_profile( profile );
return ret; return *valid;
} }
/****************************************************************************** /******************************************************************************
......
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