notepad: Use character count for GetFileTitleW (Coverity).

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

View File

@ -76,7 +76,7 @@ VOID SetFileNameAndEncoding(LPCWSTR szFileName, ENCODING enc)
{
lstrcpyW(Globals.szFileName, szFileName);
Globals.szFileTitle[0] = 0;
GetFileTitleW(szFileName, Globals.szFileTitle, sizeof(Globals.szFileTitle));
GetFileTitleW(szFileName, Globals.szFileTitle, sizeof(Globals.szFileTitle) / sizeof(WCHAR));
Globals.encFile = enc;
}