Michael Stefaniuc : mscms: Remove always false if subexpression ( PVS-Studio).
Module: wine Branch: master Commit: be90236fab6f3489dc1ebc35d5dae4c0113cad36 URL: http://source.winehq.org/git/wine.git/?a=commit;h=be90236fab6f3489dc1ebc35d5... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Dec 22 11:28:58 2014 +0100 mscms: Remove always false if subexpression (PVS-Studio). --- dlls/mscms/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mscms/profile.c b/dlls/mscms/profile.c index d6ee715..eb9b4d0 100644 --- a/dlls/mscms/profile.c +++ b/dlls/mscms/profile.c @@ -649,7 +649,7 @@ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profi lstrcatW( rgbprofile, rgbprofilefile ); len = lstrlenW( rgbprofile ) * sizeof(WCHAR); - if (*size < len || !profile) + if (*size < len) { *size = len; SetLastError( ERROR_MORE_DATA );
participants (1)
-
Alexandre Julliard