=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: shlwapi: Avoid assigning values twice (PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 20 08:43:19 CDT 2015
Module: wine
Branch: master
Commit: e26e33fa0631b7d12b94bc353a7f2863e043a020
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e26e33fa0631b7d12b94bc353a7f2863e043a020
Author: André Hentschel <nerv at 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++;
More information about the wine-cvs
mailing list