mscms: Use the return values of GetStandardColorSpaceProfileW and GetColorDirectoryW (clang).
This commit is contained in:
parent
06cd0e2a49
commit
0cf1bdf96e
|
@ -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 )))
|
||||
|
|
Loading…
Reference in New Issue