mscms: Fix a couple of compiler warnings when lcms is missing.

This commit is contained in:
Alexandre Julliard 2008-03-07 12:26:36 +01:00
parent 81ae4182f5
commit 533380817b
2 changed files with 7 additions and 3 deletions

View File

@ -127,9 +127,13 @@ static BOOL set_profile_device_key( PCWSTR file, const BYTE *value, DWORD size )
SetLastError( ERROR_INVALID_PROFILE ); SetLastError( ERROR_INVALID_PROFILE );
return FALSE; return FALSE;
} }
if (!GetColorProfileHeader( handle, &header ))
{
CloseColorProfile( handle );
SetLastError( ERROR_INVALID_PROFILE );
return FALSE;
}
RegCreateKeyExW( HKEY_LOCAL_MACHINE, icmW, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &icm_key, NULL ); RegCreateKeyExW( HKEY_LOCAL_MACHINE, icmW, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &icm_key, NULL );
GetColorProfileHeader( handle, &header );
MSCMS_basename( file, basenameW ); MSCMS_basename( file, basenameW );
sprintfW( classW, fmtW, (header.phClass >> 24) & 0xff, (header.phClass >> 16) & 0xff, sprintfW( classW, fmtW, (header.phClass >> 24) & 0xff, (header.phClass >> 16) & 0xff,

View File

@ -151,7 +151,7 @@ BOOL WINAPI RegisterCMMW( PCWSTR machine, DWORD id, PCWSTR dll )
BOOL WINAPI SelectCMM( DWORD id ) BOOL WINAPI SelectCMM( DWORD id )
{ {
FIXME( "( %s ) stub\n", MSCMS_dbgstr_tag(id) ); FIXME( "(%x) stub\n", id );
return TRUE; return TRUE;
} }