shlwapi: Remove redundant "not NULL" checks of the len arg (coccicheck).
This commit is contained in:
parent
4134c57a91
commit
f38336d82a
|
@ -1415,7 +1415,7 @@ HRESULT WINAPI StrRetToBufW (LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case STRRET_CSTR:
|
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;
|
dest[len-1] = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1423,7 +1423,7 @@ HRESULT WINAPI StrRetToBufW (LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest,
|
||||||
if (pidl)
|
if (pidl)
|
||||||
{
|
{
|
||||||
if (!MultiByteToWideChar( CP_ACP, 0, ((LPCSTR)&pidl->mkid)+src->u.uOffset, -1,
|
if (!MultiByteToWideChar( CP_ACP, 0, ((LPCSTR)&pidl->mkid)+src->u.uOffset, -1,
|
||||||
dest, len ) && len)
|
dest, len ))
|
||||||
dest[len-1] = 0;
|
dest[len-1] = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue