notepad: Use character count for GetFileTitleW (Coverity).
This commit is contained in:
parent
b5c3408a5e
commit
457c5f1977
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue