From 147ea8b7c6fb6621fdb4e171d756a9e715262d8e Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Fri, 15 Jan 2010 08:18:55 +0100 Subject: [PATCH] shlwapi: Fix MLBuildResURLW implementation. --- dlls/shlwapi/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c index f8a5162e193..544b5295023 100644 --- a/dlls/shlwapi/url.c +++ b/dlls/shlwapi/url.c @@ -2384,7 +2384,7 @@ HRESULT WINAPI MLBuildResURLW(LPCWSTR lpszLibName, HMODULE hMod, DWORD dwFlags, dwResLen = strlenW(lpszRes) + 1; if (dwDestLen >= dwResLen + 1) { - lpszDest[szResLen + dwPathLen + dwResLen] = '/'; + lpszDest[szResLen + dwPathLen-1] = '/'; memcpy(lpszDest + szResLen + dwPathLen, lpszRes, dwResLen * sizeof(WCHAR)); hRet = S_OK; }