mscms: Remove always false if subexpression (PVS-Studio)

Michael Stefaniuc mstefani at redhat.de
Mon Dec 22 04:28:58 CST 2014


---
The function returns with an error if profile is NULL.



 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 );
-- 
1.9.3



More information about the wine-patches mailing list