[NOTEPAD] Avoid a cast.

This commit is contained in:
Thomas Faber 2018-06-29 14:59:16 +02:00
parent 534a309edc
commit 97df61edfa
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
3 changed files with 8 additions and 7 deletions

View file

@ -362,7 +362,7 @@ VOID DoOpenFile(LPCTSTR szFileName)
goto done;
}
if (!ReadText(hFile, (LPWSTR *)&pszText, &dwTextLen, (int *)&Globals.encFile, &Globals.iEoln))
if (!ReadText(hFile, (LPWSTR *)&pszText, &dwTextLen, &Globals.encFile, &Globals.iEoln))
{
ShowLastError();
goto done;