shlwapi: Fix MLBuildResURLW implementation.

This commit is contained in:
Piotr Caban 2010-01-15 08:18:55 +01:00 committed by Alexandre Julliard
parent db137cc975
commit 147ea8b7c6
1 changed files with 1 additions and 1 deletions

View File

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