mscms: Use the return values of GetStandardColorSpaceProfileW and GetColorDirectoryW (clang).

This commit is contained in:
Hans Leidekker 2012-02-03 10:48:03 +01:00 committed by Alexandre Julliard
parent 06cd0e2a49
commit 0cf1bdf96e
1 changed files with 2 additions and 4 deletions

View File

@ -253,13 +253,12 @@ BOOL WINAPI GetColorDirectoryA( PCSTR machine, PSTR buffer, PDWORD size )
{
ret = GetColorDirectoryW( NULL, NULL, &sizeW );
*size = sizeW / sizeof(WCHAR);
return FALSE;
return ret;
}
sizeW = *size * sizeof(WCHAR);
bufferW = HeapAlloc( GetProcessHeap(), 0, sizeW );
if (bufferW)
{
if ((ret = GetColorDirectoryW( NULL, bufferW, &sizeW )))
@ -594,11 +593,10 @@ BOOL WINAPI GetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile
{
ret = GetStandardColorSpaceProfileW( NULL, id, NULL, &sizeW );
*size = sizeW / sizeof(WCHAR);
return FALSE;
return ret;
}
profileW = HeapAlloc( GetProcessHeap(), 0, sizeW );
if (profileW)
{
if ((ret = GetStandardColorSpaceProfileW( NULL, id, profileW, &sizeW )))