shlwapi: Avoid assigning values twice (PVS-Studio).

This commit is contained in:
André Hentschel 2015-03-19 22:11:46 +01:00 committed by Alexandre Julliard
parent 765abb771f
commit e26e33fa06
1 changed files with 1 additions and 2 deletions

View File

@ -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++;