[NOTEPAD] Globals.encFile: explicitly cast to ENCODING

This commit is contained in:
Serge Gautherie 2018-06-29 23:44:39 +02:00 committed by Hermès BÉLUSCA - MAÏTO
parent a731be3f12
commit 6830ecb118

View file

@ -496,7 +496,7 @@ DIALOG_FileSaveAs_Hook(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
hCombo = GetDlgItem(hDlg, ID_ENCODING);
if (hCombo)
Globals.encFile = (int) SendMessage(hCombo, CB_GETCURSEL, 0, 0);
Globals.encFile = (ENCODING) SendMessage(hCombo, CB_GETCURSEL, 0, 0);
hCombo = GetDlgItem(hDlg, ID_EOLN);
if (hCombo)