wordpad: Copy the correct amount of data with lstrcpynW (Coverity).

This commit is contained in:
André Hentschel 2015-07-19 23:30:15 +02:00 committed by Alexandre Julliard
parent fd490262ce
commit b5c3408a5e
1 changed files with 1 additions and 1 deletions

View File

@ -1232,7 +1232,7 @@ static LRESULT handle_findmsg(LPFINDREPLACEW pFr)
if (pFr->lpstrFindWhat != custom_data->findBuffer)
{
lstrcpynW(custom_data->findBuffer, pFr->lpstrFindWhat,
sizeof(custom_data->findBuffer));
sizeof(custom_data->findBuffer) / sizeof(WCHAR));
pFr->lpstrFindWhat = custom_data->findBuffer;
}