[NOTEPAD] Fix a MSVC warning about Globals.encFile (#648)

"...\dialog.c(365) : error C4133: 'function' : incompatible types - from 'ENCODING *' to 'int *'"
CORE-7538
This commit is contained in:
Serge Gautherie 2018-06-29 14:17:29 +02:00 committed by Hermès BÉLUSCA - MAÏTO
parent e353b48cb2
commit 534a309edc

View file

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