mscms: Remove always false if subexpression (PVS-Studio).
This commit is contained in:
parent
dc467bf233
commit
be90236fab
|
@ -649,7 +649,7 @@ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profi
|
||||||
lstrcatW( rgbprofile, rgbprofilefile );
|
lstrcatW( rgbprofile, rgbprofilefile );
|
||||||
len = lstrlenW( rgbprofile ) * sizeof(WCHAR);
|
len = lstrlenW( rgbprofile ) * sizeof(WCHAR);
|
||||||
|
|
||||||
if (*size < len || !profile)
|
if (*size < len)
|
||||||
{
|
{
|
||||||
*size = len;
|
*size = len;
|
||||||
SetLastError( ERROR_MORE_DATA );
|
SetLastError( ERROR_MORE_DATA );
|
||||||
|
|
Loading…
Reference in New Issue