shlwapi: Avoid assigning values twice (PVS-Studio)
André Hentschel
nerv at dawncrow.de
Thu Mar 19 16:11:46 CDT 2015
---
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++;
--
1.9.1
More information about the wine-patches
mailing list