From: Alex Henrie Subject: [PATCH] cabinet: Avoid calling strlen on a constant Message-Id: <20190205061238.13905-3-alexhenrie24@gmail.com> Date: Mon, 4 Feb 2019 23:12:06 -0700 In-Reply-To: <20190205061238.13905-1-alexhenrie24@gmail.com> References: <20190205061238.13905-1-alexhenrie24@gmail.com> Signed-off-by: Alex Henrie --- dlls/cabinet/cabinet_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/cabinet/cabinet_main.c b/dlls/cabinet/cabinet_main.c index 8af0fb1e6d..8adcb71c9e 100644 --- a/dlls/cabinet/cabinet_main.c +++ b/dlls/cabinet/cabinet_main.c @@ -194,8 +194,7 @@ static INT_PTR CDECL fdi_notify_extract(FDINOTIFICATIONTYPE fdint, PFDINOTIFICAT HANDLE hFile = 0; DWORD dwSize; - dwSize = lstrlenA(pDestination->Destination) + - lstrlenA("\\") + lstrlenA(pfdin->psz1) + 1; + dwSize = lstrlenA(pDestination->Destination) + lstrlenA(pfdin->psz1) + 2; szFullPath = HeapAlloc(GetProcessHeap(), 0, dwSize); lstrcpyA(szFullPath, pDestination->Destination); -- 2.20.1