André Hentschel : shlwapi: Avoid assigning values twice (PVS-Studio).
Module: wine Branch: master Commit: e26e33fa0631b7d12b94bc353a7f2863e043a020 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e26e33fa0631b7d12b94bc353a... Author: André Hentschel <nerv(a)dawncrow.de> Date: Thu Mar 19 22:11:46 2015 +0100 shlwapi: Avoid assigning values twice (PVS-Studio). --- dlls/shlwapi/string.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c index ca2f9b9..6e90b4e 100644 --- a/dlls/shlwapi/string.c +++ b/dlls/shlwapi/string.c @@ -2705,8 +2705,7 @@ DWORD WINAPI SHUnicodeToAnsiCP(UINT CodePage, LPCWSTR lpSrcStr, LPSTR lpDstStr, mem = HeapAlloc(GetProcessHeap(), 0, reqLen); if (mem) { - reqLen = WideCharToMultiByte(CodePage, 0, lpSrcStr, len, mem, - reqLen, NULL, NULL); + WideCharToMultiByte(CodePage, 0, lpSrcStr, len, mem, reqLen, NULL, NULL); reqLen = SHTruncateString(mem, dstlen -1); reqLen++;
participants (1)
-
Alexandre Julliard