shlwapi: Avoid assigning values twice (PVS-Studio).
This commit is contained in:
parent
765abb771f
commit
e26e33fa06
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue