shlwapi: Remove redundant "not NULL" checks of the len arg (coccicheck).
authorMichael Stefaniuc <mstefani@redhat.de>
Wed, 19 May 2010 23:14:19 +0000 (01:14 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 20 May 2010 11:47:53 +0000 (13:47 +0200)
dlls/shlwapi/string.c

index e00a92582e09b2d80655e4a30daef0524cc55775..a0269b6cb37fbe85fe4c2df5e6bd1f8b1e629fe9 100644 (file)
@@ -1415,7 +1415,7 @@ HRESULT WINAPI StrRetToBufW (LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest,
            break;
 
          case STRRET_CSTR:
-              if (!MultiByteToWideChar( CP_ACP, 0, src->u.cStr, -1, dest, len ) && len)
+              if (!MultiByteToWideChar( CP_ACP, 0, src->u.cStr, -1, dest, len ))
                   dest[len-1] = 0;
            break;
 
@@ -1423,7 +1423,7 @@ HRESULT WINAPI StrRetToBufW (LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest,
            if (pidl)
            {
               if (!MultiByteToWideChar( CP_ACP, 0, ((LPCSTR)&pidl->mkid)+src->u.uOffset, -1,
-                                        dest, len ) && len)
+                                        dest, len ))
                   dest[len-1] = 0;
            }
            break;