http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4134c57
)
shlwapi: Remove redundant "not NULL" checks of the len arg (coccicheck).
author
Michael Stefaniuc
<mstefani@redhat.de>
Wed, 19 May 2010 23:14:19 +0000
(
01:14
+0200)
committer
Alexandre Julliard
<julliard@winehq.org>
Thu, 20 May 2010 11:47:53 +0000
(13:47 +0200)
dlls/shlwapi/string.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/shlwapi/string.c
b/dlls/shlwapi/string.c
index e00a92582e09b2d80655e4a30daef0524cc55775..a0269b6cb37fbe85fe4c2df5e6bd1f8b1e629fe9 100644
(file)
--- a/
dlls/shlwapi/string.c
+++ b/
dlls/shlwapi/string.c
@@
-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;