Commit 0cf1bdf9 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

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